Skip to content

Commit

Permalink
fix ruff linting
Browse files Browse the repository at this point in the history
  • Loading branch information
schumannj committed Nov 12, 2024
1 parent 2308d4d commit 23e241f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/nomad_catalysis/schema_packages/catalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -2309,16 +2309,8 @@ def write_products_results(
return
product_results = []
for i in self.results[0].products:
if (
i.pure_component is not None
and i.pure_component.iupac_name is not None
and i.pure_component.iupac_name != 'azane'
):
if i.pure_component is not None and i.pure_component.iupac_name is not None:
i.name = i.pure_component.iupac_name
elif (
i.pure_component is not None and i.pure_component.iupac_name == 'azane'
):
i.name = 'ammonia'
prod = Product(
name=i.name,
selectivity=i.selectivity,
Expand Down

0 comments on commit 23e241f

Please sign in to comment.