Skip to content

Commit

Permalink
parity stress bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mkphuthi committed Dec 5, 2024
1 parent 0b52c62 commit f01815a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asimtools/asimmodules/benchmarking/parity.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def calc_parity_data(
if 'stress' in properties:
prop = 'stress'
srvals = np.hstack(
[srvals, np.array(atoms.get_stress()).flatten()]
[srvals, np.array(atoms.get_stress(voigt=False)).flatten()]
)

spvals = np.hstack(
Expand Down Expand Up @@ -191,7 +191,7 @@ def parity(
res[prop][source] = np.hstack(
[reses[jj][prop][source] for jj in range(len(reses))]
) * unit_factor

print(f'{prop.capitalize()} RMSE: {rmse(res[prop]["ref"], res[prop]["pred"])}')
write_csv_from_dict(
f'{prop}_parity.csv',
res[prop],
Expand Down

0 comments on commit f01815a

Please sign in to comment.