Skip to content

Commit

Permalink
fixing std calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
sblackburn-mila committed Apr 2, 2024
1 parent 428109c commit 061b503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crystal_diffusion/analysis/dataset_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def compute_metrics_for_a_run(run_path: str) -> Dict[str, pd.Series]:

metrics['root_mean_square_displacement'] = square_displacement.apply(lambda row: np.sqrt(np.mean(row)))

metrics['std_displacement'] = np.sqrt(sum([np.var(df[x]) for x in ['x', 'y', 'z']]))
metrics['std_displacement'] = np.std(square_displacement.apply(np.sqrt))

return metrics

Expand Down

0 comments on commit 061b503

Please sign in to comment.