From 719fa0d150cc9594f0fc30d0ec42e0df0c3fbb5a Mon Sep 17 00:00:00 2001 From: Kyle Shores Date: Mon, 26 Aug 2024 20:13:49 -0500 Subject: [PATCH] fixing initial conditions path --- src/acom_music_box/__init__.py | 2 +- src/acom_music_box/conditions.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/acom_music_box/__init__.py b/src/acom_music_box/__init__.py index 7f8329a3..dec1591c 100644 --- a/src/acom_music_box/__init__.py +++ b/src/acom_music_box/__init__.py @@ -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.2.2" +__version__ = "2.2.3" from .utils import convert_time, convert_pressure, convert_temperature, convert_concentration from .species import Species diff --git a/src/acom_music_box/conditions.py b/src/acom_music_box/conditions.py index e8a094fd..35a709fc 100644 --- a/src/acom_music_box/conditions.py +++ b/src/acom_music_box/conditions.py @@ -152,8 +152,10 @@ def from_config_JSON( if 'initial conditions' in config_JSON and len( list(config_JSON['initial conditions'].keys())) > 0: - initial_conditions_path = os.path.dirname( - path_to_json) + "/" + list(config_JSON['initial conditions'].keys())[0] + initial_conditions_path = os.path.join( + os.path.dirname(path_to_json), + list(config_JSON['initial conditions'].keys())[0]) + reaction_rates = Conditions.read_initial_rates_from_file( initial_conditions_path, reaction_list)