Skip to content

Commit

Permalink
Merge pull request #98 from NCAR/main
Browse files Browse the repository at this point in the history
Merge to release 1.1.0
  • Loading branch information
s-omas committed Jun 3, 2021
2 parents da0e12a + 6e4d152 commit 66ac32d
Show file tree
Hide file tree
Showing 24 changed files with 122 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@

# exclude generated code
libs/micm-collection/configured_tags/*
!libs/micm-collection/configured_tags/chapman/
libs/micm-collection/configured_tags/chapman/output
13 changes: 8 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN dnf -y update \
# python modules needed in scripts
RUN dnf -y install python3-pandas

RUN pip3 install requests numpy scipy matplotlib ipython jupyter nose Django pillow django-crispy-forms
RUN pip3 install requests numpy scipy matplotlib ipython jupyter nose Django pillow django-crispy-forms pyvis

# Build the SuiteSparse libraries for sparse matrix support
RUN curl -LO http://faculty.cse.tamu.edu/davis/SuiteSparse/SuiteSparse-5.1.0.tar.gz \
Expand Down Expand Up @@ -103,10 +103,13 @@ RUN if [ "$TAG_ID" = "false" ] ; then \
&& nohup bash -c "node combined.js &" && sleep 4 \
&& mkdir /data \
&& cd /music-box/libs/micm-collection \
&& python3 get_tag.py -tag_id $TAG_ID \
&& python3 preprocess_tag.py -mechanism_source_path configured_tags/$TAG_ID -preprocessor localhost:3000 \
&& python3 stage_tag.py -source_dir_kinetics configured_tags/$TAG_ID -target_dir_data /data \
&& cp /music-box/libs/micm-collection/configured_tags/${TAG_ID}/source_mechanism.json /build \
&& if [ "$TAG_ID" = "chapman" ] ; then \
python3 preprocess_tag.py -c configured_tags/$TAG_ID/config.json -p localhost:3000 \
&& python3 stage_tag.py -source_dir_kinetics configured_tags/$TAG_ID/output -target_dir_data /data \
; else \
echo "Only Chapman chemistry is currently available for MusicBox-MICM" \
&& exit 1 \
; fi \
; fi

# build the model
Expand Down
6 changes: 6 additions & 0 deletions examples/micm_examples/bright_chamber/use_case_4.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
"model components" : [
{
"type" : "MICM",
"override species" : {
"M" : { "mixing ratio mol mol-1" : 1.0 }
},
"suppress output" : {
"M" : { }
},
"solver" : {
"type" : "Rosenbrock",
"chemistry time step [min]" : 5.0,
Expand Down
6 changes: 6 additions & 0 deletions examples/micm_examples/bright_chamber/use_case_5.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
{
"type" : "MICM",
"solve" : false,
"override species" : {
"M" : { "mixing ratio mol mol-1" : 1.0 }
},
"suppress output" : {
"M" : { }
},
"solver" : {
"type" : "Rosenbrock",
"chemistry time step [min]" : 5.0,
Expand Down
6 changes: 6 additions & 0 deletions examples/micm_examples/bright_chamber/use_case_6.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
{
"type" : "MICM",
"solve" : false,
"override species" : {
"M" : { "mixing ratio mol mol-1" : 1.0 }
},
"suppress output" : {
"M" : { }
},
"solver" : {
"type" : "Rosenbrock",
"chemistry time step [min]" : 5.0,
Expand Down
6 changes: 6 additions & 0 deletions examples/micm_examples/bright_chamber/use_case_7.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@
"model components" : [
{
"type" : "MICM",
"override species" : {
"M" : { "mixing ratio mol mol-1" : 1.0 }
},
"suppress output" : {
"M" : { }
},
"solver" : {
"type" : "Rosenbrock",
"chemistry time step [min]" : 5.0,
Expand Down
6 changes: 6 additions & 0 deletions examples/micm_examples/bright_chamber/use_case_8.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@
{
"type" : "MICM",
"solve" : false,
"override species" : {
"M" : { "mixing ratio mol mol-1" : 1.0 }
},
"suppress output" : {
"M" : { }
},
"solver" : {
"type" : "Rosenbrock",
"chemistry time step [min]" : 5.0,
Expand Down
6 changes: 6 additions & 0 deletions examples/micm_examples/dark_chamber/use_case_1.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
{
"type" : "MICM",
"solve" : false,
"override species" : {
"M" : { "mixing ratio mol mol-1" : 1.0 }
},
"suppress output" : {
"M" : { }
},
"solver" : {
"type" : "Rosenbrock",
"chemistry time step [min]" : 5.0,
Expand Down
6 changes: 6 additions & 0 deletions examples/micm_examples/dark_chamber/use_case_2.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
{
"type" : "MICM",
"solve" : false,
"override species" : {
"M" : { "mixing ratio mol mol-1" : 1.0 }
},
"suppress output" : {
"M" : { }
},
"solver" : {
"type" : "Rosenbrock",
"chemistry time step [min]" : 5.0,
Expand Down
6 changes: 6 additions & 0 deletions examples/micm_examples/dark_chamber/use_case_3.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
{
"type" : "MICM",
"solve" : false,
"override species" : {
"M" : { "mixing ratio mol mol-1" : 1.0 }
},
"suppress output" : {
"M" : { }
},
"solver" : {
"type" : "Rosenbrock",
"chemistry time step [min]" : 5.0,
Expand Down
2 changes: 1 addition & 1 deletion libs/micm-collection
2 changes: 1 addition & 1 deletion libs/micm-preprocessor
2 changes: 1 addition & 1 deletion libs/music-box-interactive
6 changes: 6 additions & 0 deletions test/integration/input_use_cases/1/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
{
"type" : "MICM",
"solve" : false,
"override species" : {
"M" : { "mixing ratio mol mol-1" : 1.0 }
},
"suppress output" : {
"M" : { }
},
"solver" : {
"type" : "Rosenbrock",
"chemistry time step [min]" : 5.0,
Expand Down
6 changes: 6 additions & 0 deletions test/integration/input_use_cases/2/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
{
"type" : "MICM",
"solve" : false,
"override species" : {
"M" : { "mixing ratio mol mol-1" : 1.0 }
},
"suppress output" : {
"M" : { }
},
"solver" : {
"type" : "Rosenbrock",
"chemistry time step [min]" : 5.0,
Expand Down
6 changes: 6 additions & 0 deletions test/integration/input_use_cases/3/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
{
"type" : "MICM",
"solve" : false,
"override species" : {
"M" : { "mixing ratio mol mol-1" : 1.0 }
},
"suppress output" : {
"M" : { }
},
"solver" : {
"type" : "Rosenbrock",
"chemistry time step [min]" : 5.0,
Expand Down
6 changes: 6 additions & 0 deletions test/integration/input_use_cases/4/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
"model components" : [
{
"type" : "MICM",
"override species" : {
"M" : { "mixing ratio mol mol-1" : 1.0 }
},
"suppress output" : {
"M" : { }
},
"solver" : {
"type" : "Rosenbrock",
"chemistry time step [min]" : 5.0,
Expand Down
6 changes: 6 additions & 0 deletions test/integration/input_use_cases/4/config_b.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
"model components" : [
{
"type" : "MICM",
"override species" : {
"M" : { "mixing ratio mol mol-1" : 1.0 }
},
"suppress output" : {
"M" : { }
},
"solver" : {
"type" : "Rosenbrock",
"chemistry time step [min]" : 5.0,
Expand Down
6 changes: 6 additions & 0 deletions test/integration/input_use_cases/5/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
{
"type" : "MICM",
"solve" : false,
"override species" : {
"M" : { "mixing ratio mol mol-1" : 1.0 }
},
"suppress output" : {
"M" : { }
},
"solver" : {
"type" : "Rosenbrock",
"chemistry time step [min]" : 5.0,
Expand Down
6 changes: 6 additions & 0 deletions test/integration/input_use_cases/6/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
{
"type" : "MICM",
"solve" : false,
"override species" : {
"M" : { "mixing ratio mol mol-1" : 1.0 }
},
"suppress output" : {
"M" : { }
},
"solver" : {
"type" : "Rosenbrock",
"chemistry time step [min]" : 5.0,
Expand Down
6 changes: 6 additions & 0 deletions test/integration/input_use_cases/7/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@
"model components" : [
{
"type" : "MICM",
"override species" : {
"M" : { "mixing ratio mol mol-1" : 1.0 }
},
"suppress output" : {
"M" : { }
},
"solver" : {
"type" : "Rosenbrock",
"chemistry time step [min]" : 5.0,
Expand Down
6 changes: 6 additions & 0 deletions test/integration/input_use_cases/8/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@
{
"type" : "MICM",
"solve" : false,
"override species" : {
"M" : { "mixing ratio mol mol-1" : 1.0 }
},
"suppress output" : {
"M" : { }
},
"solver" : {
"type" : "Rosenbrock",
"chemistry time step [min]" : 5.0,
Expand Down
6 changes: 6 additions & 0 deletions test/integration/input_use_cases/8/config_b.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
{
"type" : "MICM",
"solve" : false,
"override species" : {
"M" : { "mixing ratio mol mol-1" : 1.0 }
},
"suppress output" : {
"M" : { }
},
"solver" : {
"type" : "Rosenbrock",
"chemistry time step [min]" : 5.0,
Expand Down

0 comments on commit 66ac32d

Please sign in to comment.