Skip to content

Commit

Permalink
fix stress in split
Browse files Browse the repository at this point in the history
  • Loading branch information
Kisung Kang committed Sep 3, 2024
1 parent 0a8c2e9 commit 3319b67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ def split_son(num_split, E_gs, harmonic_F=False):
al_type = 'sigma'
)
)
stress_test.append(test_item['calculator']['stress'])
if 'stress' in test_item['calculator']:
stress_test.append(test_item['calculator']['stress'])

# Save all information into data-test.npz
npz_name = 'MODEL/data-test.npz'
Expand Down

0 comments on commit 3319b67

Please sign in to comment.