Skip to content

Commit

Permalink
Auto-format code using Clang-Format (#244)
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 authored Sep 21, 2024
1 parent f1c8c27 commit a61e542
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
15 changes: 7 additions & 8 deletions src/acom_music_box/music_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def loadJson(self, path_to_json):
Args:
path_to_json (str): The JSON path to the JSON file.
Returns:
None
Expand All @@ -259,17 +259,16 @@ def loadJson(self, path_to_json):
# Set initial conditions
self.evolving_conditions = EvolvingConditions.from_config_JSON(
path_to_json, data, self.species_list, self.reaction_list)

camp_path = os.path.join(
os.path.dirname(path_to_json),
self.config_file)
os.path.dirname(path_to_json),
self.config_file)

# Creates a micm solver object using the CAMP configuration files.
self.solver = musica.create_solver(
camp_path,
musica.micmsolver.rosenbrock,
1)

camp_path,
musica.micmsolver.rosenbrock,
1)

def speciesOrdering(self):
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_carbon_bond_5.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class TestCarbonBond5:
def test_run(self):
box_model = MusicBox()

conditions_path = Examples.CarbonBond5.path

box_model.loadJson(conditions_path)
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_chapman.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def test_run(self):
box_model = MusicBox()

conditions_path = Examples.Chapman.path

box_model.loadJson(conditions_path)

# solves and saves output
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_flow_tube.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def test_run(self):
conditions_path = Examples.FlowTube.path

box_model.loadJson(conditions_path)

# solves and saves output
df = box_model.solve()
model_output = [df.columns.values.tolist()] + df.values.tolist()
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def test_run(self, mocker):
box_model = MusicBox()

conditions_path = Examples.Analytical.path

box_model.loadJson(conditions_path)

# Mock the callback function
Expand Down

0 comments on commit a61e542

Please sign in to comment.