Skip to content

Commit

Permalink
Auto-format code using Clang-Format (#190)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub Actions <[email protected]>
  • Loading branch information
github-actions[bot] and actions-user committed Aug 22, 2024
1 parent a98a286 commit c218ce9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/acom_music_box/music_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@ def generateConfig(self, directory):
elif header.startswith("CONC."):
species_name = header.split('.')[1]
species_concentration = next(
(x for x in self.evolving_conditions.conditions[i].species_concentrations if x.species.name == species_name),
None)
(x for x in self.evolving_conditions.conditions[i].species_concentrations if x.species.name == species_name), None)
row.append(species_concentration.concentration)
elif header.endswith(".s-1"):
reaction_name = header.split('.')
Expand All @@ -185,8 +184,7 @@ def generateConfig(self, directory):
reaction_name = reaction_name[1]

reaction_rate = next(
(x for x in self.evolving_conditions.conditions[i].reaction_rates if x.reaction.name == reaction_name),
None)
(x for x in self.evolving_conditions.conditions[i].reaction_rates if x.reaction.name == reaction_name), None)
row.append(reaction_rate.rate)

writer.writerow(row)
Expand Down

0 comments on commit c218ce9

Please sign in to comment.