Skip to content

Commit

Permalink
updating to most recent musica version
Browse files Browse the repository at this point in the history
  • Loading branch information
K20shores committed Dec 20, 2024
1 parent ca54b94 commit bbfc999
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ classifiers = ["License :: OSI Approved :: Apache Software License"]
dynamic = ["version", "description"]

dependencies = [
"musica==0.8.1",
"musica==0.9.0",
"xarray",
"colorlog",
"pandas",
Expand Down
2 changes: 1 addition & 1 deletion src/acom_music_box/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
This package contains modules for handling various aspects of a music box,
including species, products, reactants, reactions, and more.
"""
__version__ = "2.5.5"
__version__ = "2.6.0"

from .utils import convert_time, convert_pressure, convert_temperature, convert_concentration
from .model_options import BoxModelOptions
Expand Down
5 changes: 2 additions & 3 deletions src/acom_music_box/music_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,7 @@ def solve(self, callback=None):
next_conditions = None

# calculate air density from the ideal gas law
air_density = curr_conditions.pressure / \
(GAS_CONSTANT * curr_conditions.temperature)
air_density = curr_conditions.pressure / (GAS_CONSTANT * curr_conditions.temperature)

# outputs to output_array if enough time has elapsed
if (next_output_time <= curr_time):
Expand Down Expand Up @@ -229,7 +228,7 @@ def loadJson(self, path_to_json):
camp_path = os.path.join(os.path.dirname(path_to_json), self.config_file)

# Initalize the musica solver
self.solver = musica.create_solver(camp_path, musica.micmsolver.rosenbrock, 1)
self.solver = musica.create_solver(camp_path, musica.micmsolver.rosenbrock_standard_order, 1)

@staticmethod
def order_reaction_rates(curr_conditions, rate_constant_ordering):
Expand Down

0 comments on commit bbfc999

Please sign in to comment.