Skip to content

Commit

Permalink
fix accidential name change of reactants_conversions to iupac name
Browse files Browse the repository at this point in the history
  • Loading branch information
schumannj committed Oct 4, 2024
1 parent c2e614e commit 621e1d6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/nomad_catalysis/schema_packages/catalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -2215,7 +2215,9 @@ def return_conversion_results(
if i.name != j.name:
continue
if j.pure_component.iupac_name is not None:
i.name = j.pure_component.iupac_name
iupac_name = j.pure_component.iupac_name
else:
iupac_name = j.name

if i.gas_concentration_in is None:
i.gas_concentration_in = j.gas_concentration_in
Expand All @@ -2224,7 +2226,7 @@ def return_conversion_results(
the same in reaction_conditions and
results.reactants_conversions.""")
react = Reactant(
name=i.name,
name=iupac_name,
conversion=i.conversion,
gas_concentration_in=i.gas_concentration_in,
gas_concentration_out=i.gas_concentration_out,
Expand Down

0 comments on commit 621e1d6

Please sign in to comment.