cyrusyc commited on
Commit
28b7fa4
·
1 Parent(s): d97b3b5

fix rxn enthalpy

Browse files
Files changed (2) hide show
  1. .github/README.md +1 -1
  2. serve/ranks/combustion.py +3 -3
.github/README.md CHANGED
@@ -32,7 +32,7 @@ pip install mlip-arena
32
  ### From source
33
 
34
  > [!CAUTION]
35
- > We recommand to start from clean virtual environment due to the compatibility issues between multiple popular MLIPs. We provide one script installation script using uv for minimal package conflicts and fast installation!
36
 
37
  **Linux**
38
 
 
32
  ### From source
33
 
34
  > [!CAUTION]
35
+ > We recommend clean build in a new virtual environment due to the compatibility issues between multiple popular MLIPs. We provide a single installation script using `uv` for minimal package conflicts and fast installation!
36
 
37
  **Linux**
38
 
serve/ranks/combustion.py CHANGED
@@ -48,14 +48,14 @@ def get_com_drifts(df):
48
 
49
  df_exploded = get_com_drifts(df)
50
 
 
 
51
  for method, row in df_exploded.groupby("method"):
52
  # # row = df[df["method"] == method].iloc[0]
53
  energies = np.array(row["energies"])
54
- df_exploded.loc[df_exploded["method"] == method,"reaction_enthlapy_diff"] = (energies[-1] - energies[0]) / 128 * 23.
55
  df_exploded.loc[df_exploded["method"] == method, "final_com_drift"] = np.array(row["total_com_drift"])[-1]
56
 
57
- exp_ref = -68.3078 # kcal/mol
58
-
59
 
60
  df_exploded.drop(columns=["temperatures", "pressures", "total_steps", "energies", "kinetic_energies", "timestep", "nproducts", "total_com_drift", "target_steps", "reaction", "formula", "natoms", "seconds_per_step", "seconds_per_step_per_atom", "final_step", "total_time_seconds"], axis=1, inplace=True)
61
 
 
48
 
49
  df_exploded = get_com_drifts(df)
50
 
51
+ exp_ref = -68.3078 # kcal/mol
52
+
53
  for method, row in df_exploded.groupby("method"):
54
  # # row = df[df["method"] == method].iloc[0]
55
  energies = np.array(row["energies"])
56
+ df_exploded.loc[df_exploded["method"] == method,"reaction_enthlapy_diff"] = ((energies[-1] - energies[0]) / 128 * 23.) - exp_ref
57
  df_exploded.loc[df_exploded["method"] == method, "final_com_drift"] = np.array(row["total_com_drift"])[-1]
58
 
 
 
59
 
60
  df_exploded.drop(columns=["temperatures", "pressures", "total_steps", "energies", "kinetic_energies", "timestep", "nproducts", "total_com_drift", "target_steps", "reaction", "formula", "natoms", "seconds_per_step", "seconds_per_step_per_atom", "final_step", "total_time_seconds"], axis=1, inplace=True)
61