Skip to content

Commit

Permalink
removed print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjamesgarza committed Mar 28, 2024
1 parent 3ec21d0 commit cccd3b0
Show file tree
Hide file tree
Showing 6 changed files with 3,605 additions and 46 deletions.
2 changes: 1 addition & 1 deletion src/configs/test_config_2/camp_data/reactions.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"camp-data": [{"type": "MECHANISM", "name": "music box interactive configuration", "reactions": [{"type": "PHOTOLYSIS", "music_box_type": "FIRST_ORDER_LOSS", "note": "This reaction is being run in CAMP as a photolysis reaction in order to be able to include the irr product", "scaling factor": 1, "MUSICA name": "LOSS_SOA1 wall loss", "species": "SOA1", "reactants": {"SOA1": {}}, "products": {"irr__03d939f3-e4a3-4fba-89a8-e54fadaf1fe0": {"yield": 1}}}, {"type": "PHOTOLYSIS", "music_box_type": "FIRST_ORDER_LOSS", "note": "This reaction is being run in CAMP as a photolysis reaction in order to be able to include the irr product", "scaling factor": 1, "MUSICA name": "LOSS_SOA2 wall loss", "species": "SOA2", "reactants": {"SOA2": {}}, "products": {"irr__0a6e8dfd-f9c5-4277-bcd3-784de85fc8cd": {"yield": 1}}}, {"type": "ARRHENIUS", "A": 8.8e-17, "Ea": 0, "B": 0, "D": 300, "E": 0, "reactants": {"O3": {"qty": 1}, "a-pinene": {"qty": 1}}, "products": {"SOA1": {"yield": 0.18}, "SOA2": {"yield": 0.09}, "irr__bab3e78d-d1d7-4c6b-9f6f-bbbd303c0901": {"yield": 1}}}]}]}
{"camp-data": [{"type": "MECHANISM", "name": "music box interactive configuration", "reactions": [{"type": "ARRHENIUS", "A": 8.8e-17, "Ea": 0, "B": 0, "D": 300, "E": 0, "reactants": {"O3": {"qty": 1}, "a-pinene": {"qty": 1}}, "products": {"SOA1": {"yield": 0.18}, "SOA2": {"yield": 0.09}, "irr__bab3e78d-d1d7-4c6b-9f6f-bbbd303c0901": {"yield": 1}}}]}]}
2 changes: 1 addition & 1 deletion src/configs/test_config_2/camp_data/species.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"camp-data": [{"name": "M", "type": "CHEM_SPEC", "tracer type": "CONSTANT"}, {"name": "a-pinene", "type": "CHEM_SPEC"}, {"name": "O3", "type": "CHEM_SPEC"}, {"name": "SOA1", "type": "CHEM_SPEC"}, {"name": "SOA2", "type": "CHEM_SPEC"}, {"name": "irr__03d939f3-e4a3-4fba-89a8-e54fadaf1fe0", "type": "CHEM_SPEC"}, {"name": "irr__0a6e8dfd-f9c5-4277-bcd3-784de85fc8cd", "type": "CHEM_SPEC"}, {"name": "irr__bab3e78d-d1d7-4c6b-9f6f-bbbd303c0901", "type": "CHEM_SPEC"}]}
{"camp-data": [ {"name": "a-pinene", "type": "CHEM_SPEC"}, {"name": "O3", "type": "CHEM_SPEC"}, {"name": "SOA1", "type": "CHEM_SPEC"}, {"name": "SOA2", "type": "CHEM_SPEC"}, {"name": "irr__bab3e78d-d1d7-4c6b-9f6f-bbbd303c0901", "type": "CHEM_SPEC"}]}
2 changes: 0 additions & 2 deletions src/configs/test_config_2/initial_conditions.csv

This file was deleted.

42 changes: 1 addition & 41 deletions src/configs/test_config_2/my_config.json
Original file line number Diff line number Diff line change
@@ -1,41 +1 @@
{
"box model options": {
"grid": "box",
"chemistry time step [sec]": 1,
"output time step [sec]": 1,
"simulation length [hr]": 1
},
"chemical species": {
"a-pinene": {
"initial value [mol m-3]": 8e-08
},
"O3": {
"initial value [mol m-3]": 2e-05
}
},
"environmental conditions": {
"temperature": {
"initial value [K]": 298.15
},
"pressure": {
"initial value [Pa]": 101325
}
},
"initial conditions": {
"initial_conditions.csv": {}
},
"model components": [
{
"type": "CAMP",
"configuration file": "camp_data/config.json",
"override species": {
"M": {
"mixing ratio mol mol-1": 1
}
},
"suppress output": {
"M": {}
}
}
]
}
{"box model options": {"grid": "box", "chemistry time step [sec]": 1, "output time step [sec]": 1, "simulation length [hr]": 1}, "chemical species": {"a-pinene": {"initial value [mol m-3]": 8e-08}, "O3": {"initial value [mol m-3]": 2e-05}}, "environmental conditions": {"temperature": {"initial value [K]": 298.15}, "pressure": {"initial value [Pa]": 101325}}, "initial conditions": {}, "model components": [{"type": "CAMP", "configuration file": "camp_data/config.json", "override species": {"M": {"mixing ratio mol mol-1": 1}}, "suppress output": {"M": {}}}]}
1 change: 0 additions & 1 deletion src/music_box_model_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def from_config_JSON(cls, config_JSON):
chem_step_time = utils.convert_time(config_JSON['box model options'], 'chemistry time step')
output_step_time = utils.convert_time(config_JSON['box model options'], 'output time step')
simulation_length = utils.convert_time(config_JSON['box model options'], 'simulation length')
print(simulation_length)

grid = config_JSON['box model options']['grid']

Expand Down
Loading

0 comments on commit cccd3b0

Please sign in to comment.