Skip to content

Commit

Permalink
recording as floats (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
joglekara authored Oct 17, 2024
1 parent 60e014e commit e22cb11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adept/vfp1d/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,8 @@ def post_process(soln: Solution, cfg: Dict, td: str, args: Dict = None) -> Dict:
plt.close()

metrics = {
"kappa": round(np.amax(fields_xr["fields-kappa_c"][-1].data), 4),
"kappa_eh": round(calc_EH(cfg["units"]["Z"], 0.0), 4),
"kappa": float(round(np.amax(fields_xr["fields-kappa_c"][-1].data), 4)),
"kappa_eh": float(round(calc_EH(cfg["units"]["Z"], 0.0), 4)),
}

return {"fields": fields_xr, "dists": f_xr, "metrics": metrics}
Expand Down

0 comments on commit e22cb11

Please sign in to comment.