Skip to content

Commit e26bd5c

Browse files
authored
Merge pull request #412 from NCAR/main
v2.11.0
2 parents 1763125 + 6b1f0ce commit e26bd5c

File tree

19 files changed

+585
-343
lines changed

19 files changed

+585
-343
lines changed

.github/workflows/CI_Tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [ubuntu-latest, macos-latest, windows-latest]
16-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
16+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
1717

1818
runs-on: ${{ matrix.os }}
1919
steps:
@@ -60,6 +60,7 @@ jobs:
6060
music_box -c src/acom_music_box/examples/configs/analytical/my_config.json -o output.csv
6161
music_box -e Analytical -o output.csv
6262
music_box -e Analytical -o output.csv -vv --color-output
63-
waccmToMusicBox waccmDir="./sample_waccm_data" date="20240904" time="07:00" latitude=3.1 longitude=101.7
63+
waccmToMusicBox --waccmDir "./sample_waccm_data" --date "20240904" --time "07:00" --latitude 3.1 --longitude 101.7
64+
waccmToMusicBox --wrfchemDir "./sample_waccm_data" --date "20250820" --time "08:00" --latitude 47.0,49.0 --longitude "'-123.0,-121.0'"
6465
6566
shell: pwsh

.github/workflows/docker_tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
os: [ubuntu-latest]
2222
dockerfile:
2323
- Dockerfile
24+
- Dockerfile.docs
2425
steps:
2526
- name: Checkout code
2627
uses: actions/checkout@v4
@@ -31,7 +32,8 @@ jobs:
3132
run: rm -rf /opt/hostedtoolcache
3233

3334
- name: Build Docker image
34-
run: docker build -t music-box -f docker/${{ matrix.dockerfile }} . --build-arg MUSIC_BOX_GIT_TAG=${{ github.sha }}
35+
run: docker build -t music-box -f docker/${{ matrix.dockerfile }} .
3536

3637
- name: Run tests in container
38+
if: matrix.dockerfile == 'Dockerfile'
3739
run: docker run --name test-container -t music-box

.github/workflows/gh_pages.yml

Lines changed: 0 additions & 156 deletions
This file was deleted.

.readthedocs.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Read the Docs configuration file
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
---
4+
# Required
5+
version: 2
6+
7+
# Set the OS, Python version, and other tools you might need
8+
build:
9+
os: ubuntu-24.04
10+
tools:
11+
python: "3.13"
12+
13+
# Build documentation in the "docs/" directory with Sphinx
14+
sphinx:
15+
configuration: docs/source/conf.py
16+
17+
# Optionally, but recommended,
18+
# declare the Python requirements required to build your documentation
19+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
20+
python:
21+
install:
22+
- method: pip
23+
path: .
24+
- requirements: docs/requirements.txt

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cff-version: 1.2.0
22
message: If you use this software, please cite it as below.
33
title: MusicBox
4-
version: v2.10.0
4+
version: v2.11.0
55
authors:
66
- family-names: Dawson
77
given-names: Matthew

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,3 +189,21 @@ pip install -e '.[dev]'
189189
```
190190
pytest
191191
```
192+
193+
## Tool: waccmToMusicBox
194+
195+
The python script waccmToMusicBox will extract concentrations of chemical species from WACCM and WRF-Chem, and write those values to initial conditions for MusicBox. Here are several examples of its use:
196+
197+
```
198+
waccmToMusicBox --waccmDir "./sample_waccm_data" --date "20240904" --time "07:00" --latitude 3.1 --longitude 101.7
199+
waccmToMusicBox --wrfchemDir "./sample_waccm_data" --date "20250820" --time "08:00" --latitude 47.0,49.0 --longitude "'-123.0,-121.0'"
200+
201+
waccmToMusicBox --waccmDir ~/MusicBox/WACCM/model-output --musicaDir ~/MusicBox/WACCM/csvJsonDir --date 20240301 --time 07:00 --latitude "'-4.0,-2.0'" --longitude 101.0,103.0 --template ~/MusicBox/WACCM/templates/TS1 --output CSV,JSON --verbose
202+
waccmToMusicBox --wrfchemDir ~/MusicBox/WRF-Chem/model-output --musicaDir ~/MusicBox/WRF-Chem/csvJsonDir --date 20250820 --time 08:00 --latitude 47.6 --longitude -122.325 --template ~/MusicBox/WRF-Chem/templates/TS1 --output CSV,JSON --verbose
203+
```
204+
205+
Use the built-in help function to obtain a list of command-line parameters.
206+
```
207+
waccmToMusicBox --help
208+
```
209+

docker/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
FROM fedora:latest
22

3-
ARG MUSIC_BOX_TAG=main
4-
ARG MUSICA_TAG=v0.12.2
3+
ARG MUSICA_TAG=v0.13.0
54

65
RUN dnf -y update \
76
&& dnf -y install \

docker/Dockerfile.docs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,9 @@ COPY . /music-box/
1818

1919
WORKDIR /music-box
2020

21-
2221
RUN pip3 install -e .
2322

24-
ARG SUFFIX=""
25-
ENV SWITCHER_SUFFIX=$SUFFIX
26-
27-
RUN echo "The suffix is '$SWITCHER_SUFFIX'"
28-
2923
RUN cd docs \
3024
&& pip install -r requirements.txt \
31-
&& pip install --upgrade pip ipython ipykernel \
3225
&& make html
3326

docs/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
ipython
2+
ipykernel
13
sphinx
24
sphinx-book-theme
35
sphinx-copybutton

docs/source/_static/switcher.json

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)