Skip to content

Commit 79bc218

Browse files
authored
Merge pull request #995 from MPAS-Dev/develop
Merge develop into main for v1.10.0 release
2 parents 83c4054 + f24f15c commit 79bc218

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1364
-295
lines changed

azure-pipelines.yml

Lines changed: 18 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ jobs:
2121
vmImage: 'ubuntu-latest'
2222
strategy:
2323
matrix:
24-
Python39:
25-
python.version: '3.9'
2624
Python310:
2725
python.version: '3.10'
2826
Python311:
2927
python.version: '3.11'
28+
Python312:
29+
python.version: '3.12'
3030

3131
steps:
3232
- bash: echo "##vso[task.prependpath]$CONDA/bin"
@@ -37,27 +37,22 @@ jobs:
3737
eval "$(conda shell.bash hook)"
3838
conda config --add channels conda-forge
3939
conda config --set channel_priority strict
40-
conda update --yes --all
41-
conda install --yes mamba
42-
# workaround based on recent failures
43-
rm /usr/share/miniconda/pkgs/cache/*.json
44-
mamba install --yes conda-build boa
45-
displayName: Update conda base environment
40+
conda create --yes --name build_env conda-build
41+
displayName: Create build environment
4642
4743
- bash: |
4844
set -e
4945
eval "$(conda shell.bash hook)"
50-
conda activate
51-
# workaround based on recent failures
52-
rm /usr/share/miniconda/pkgs/cache/*.json
53-
conda mambabuild -m "ci/python${PYTHON_VERSION}.yaml" "ci/recipe"
46+
conda activate build_env
47+
conda build -m "ci/python${PYTHON_VERSION}.yaml" "ci/recipe"
5448
displayName: Build MPAS-Analysis
5549
5650
- bash: |
5751
set -e
5852
eval "$(conda shell.bash hook)"
5953
conda activate
60-
mamba create --yes --quiet --name mpas -c ${CONDA_PREFIX}/conda-bld/ \
54+
conda create --yes --quiet --name mpas \
55+
-c ${CONDA_PREFIX}/envs/build_env/conda-bld/ \
6156
python=$PYTHON_VERSION mpas-analysis pytest
6257
displayName: Create Anaconda mpas environment
6358
@@ -72,7 +67,8 @@ jobs:
7267
set -e
7368
eval "$(conda shell.bash hook)"
7469
conda activate
75-
mamba create --yes --quiet --name docs -c ${CONDA_PREFIX}/conda-bld/ \
70+
conda create --yes --quiet --name docs \
71+
-c ${CONDA_PREFIX}/envs/build_env/conda-bld/ \
7672
python=$PYTHON_VERSION mpas-analysis sphinx mock sphinx_rtd_theme \
7773
tabulate "m2r2>=0.3.3" "mistune<2"
7874
condition: eq(variables['python.version'], '3.10')
@@ -151,7 +147,7 @@ jobs:
151147
strategy:
152148
matrix:
153149
Python310:
154-
python.version: '3.10'
150+
python.version: '3.11'
155151

156152
steps:
157153
- bash: echo "##vso[task.prependpath]$CONDA/bin"
@@ -162,28 +158,25 @@ jobs:
162158
eval "$(conda shell.bash hook)"
163159
conda config --add channels conda-forge
164160
conda config --set channel_priority strict
165-
conda update --yes --all
166-
conda install --yes mamba
167-
# workaround based on recent failures
168-
rm /usr/share/miniconda/pkgs/cache/*.json
169-
mamba install --yes conda-build boa
170-
displayName: Update conda base environment
161+
conda create --yes --name build_env conda-build
162+
displayName: Create build environment
171163
172164
- bash: |
173165
set -e
174166
eval "$(conda shell.bash hook)"
175-
conda activate
167+
conda activate build_env
176168
# workaround based on recent failures
177169
rm /usr/share/miniconda/pkgs/cache/*.json
178-
conda mambabuild -m "ci/python${PYTHON_VERSION}.yaml" "ci/recipe"
170+
conda build -m "ci/python${PYTHON_VERSION}.yaml" "ci/recipe"
179171
displayName: Build MPAS-Analysis
180172
181173
- bash: |
182174
set -e
183175
eval "$(conda shell.bash hook)"
184176
conda activate
185-
mamba create --yes --quiet --name mpas -c ${CONDA_PREFIX}/conda-bld/ \
186-
python=$PYTHON_VERSION mpas-analysis pytest
177+
conda create --yes --quiet --name mpas \
178+
-c ${CONDA_PREFIX}/envs/build_env/conda-bld/ \
179+
python=$PYTHON_VERSION mpas-analysis pytest
187180
conda activate mpas
188181
pip install git+https://github.com/pydata/xarray.git
189182

ci/python3.9.yaml renamed to ci/python3.12.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ pin_run_as_build:
55
min_pin: x.x
66
max_pin: x.x
77
python:
8-
- 3.9.* *_cpython
8+
- 3.12.* *_cpython

ci/recipe/meta.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% set name = "MPAS-Analysis" %}
2-
{% set version = "1.9.1" %}
2+
{% set version = "1.10.0" %}
33

44
package:
55
name: {{ name|lower }}
@@ -43,7 +43,7 @@ requirements:
4343
- pillow >=10.0.0,<11.0.0
4444
- progressbar2
4545
- pyproj
46-
- pyremap >=0.0.14,<0.1.0
46+
- pyremap >=1.2.0,<2.0.0
4747
- python-dateutil
4848
- requests
4949
- scipy

dev-spec.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pandas
2626
pillow >=10.0.0,<11.0.0
2727
progressbar2
2828
pyproj
29-
pyremap>=0.0.14,<0.1.0
29+
pyremap>=1.2.0,<2.0.0
3030
python-dateutil
3131
requests
3232
scipy

docs/developers_guide/api.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Ocean tasks
6161
.. autosummary::
6262
:toctree: generated/
6363

64+
ConservationTask
6465
ClimatologyMapSST
6566
ClimatologyMapSSS
6667
ClimatologyMapMLD
@@ -75,6 +76,7 @@ Ocean tasks
7576
ClimatologyMapWaves
7677
IndexNino34
7778
MeridionalHeatTransport
79+
OceanHistogram
7880
StreamfunctionMOC
7981
TimeSeriesOHCAnomaly
8082
TimeSeriesTemperatureAnomaly

docs/tutorials/dev_getting_started.rst

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -642,24 +642,16 @@ climate index.
642642
## options related to producing time series plots, often to compare against
643643
## observations and previous runs
644644
645-
# start and end years for timeseries analysis. Use endYear = end to indicate
646-
# that the full range of the data should be used. If errorOnMissing = False,
647-
# the start and end year will be clipped to the valid range. Otherwise, out
648-
# of bounds values will lead to an error. In a "control" config file used in
649-
# a "main vs. control" analysis run, the range of years must be valid and
650-
# cannot include "end" because the original data may not be available.
645+
# start and end years for timeseries analysis. Out-of-bounds values will lead
646+
# to an error.
651647
startYear = 1
652648
endYear = 5
653649
654650
[index]
655651
## options related to producing nino index.
656652
657-
# start and end years for El Nino 3.4 analysis. Use endYear = end to indicate
658-
# that the full range of the data should be used. If errorOnMissing = False,
659-
# the start and end year will be clipped to the valid range. Otherwise, out
660-
# of bounds values will lead to an error. In a "control" config file used in
661-
# a "main vs. control" analysis run, the range of years must be valid and
662-
# cannot include "end" because the original data may not be available.
653+
# start and end years for El Nino 3.4 analysis. Out-of-bounds values will lead
654+
# to an error.
663655
startYear = 1
664656
endYear = 5
665657

docs/tutorials/getting_started.rst

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -443,24 +443,16 @@ climate index.
443443
## options related to producing time series plots, often to compare against
444444
## observations and previous runs
445445
446-
# start and end years for timeseries analysis. Use endYear = end to indicate
447-
# that the full range of the data should be used. If errorOnMissing = False,
448-
# the start and end year will be clipped to the valid range. Otherwise, out
449-
# of bounds values will lead to an error. In a "control" config file used in
450-
# a "main vs. control" analysis run, the range of years must be valid and
451-
# cannot include "end" because the original data may not be available.
446+
# start and end years for timeseries analysis. Out-of-bounds values will lead
447+
# to an error.
452448
startYear = 1
453449
endYear = 5
454450
455451
[index]
456452
## options related to producing nino index.
457453
458-
# start and end years for El Nino 3.4 analysis. Use endYear = end to indicate
459-
# that the full range of the data should be used. If errorOnMissing = False,
460-
# the start and end year will be clipped to the valid range. Otherwise, out
461-
# of bounds values will lead to an error. In a "control" config file used in
462-
# a "main vs. control" analysis run, the range of years must be valid and
463-
# cannot include "end" because the original data may not be available.
454+
# start and end years for timeseries analysis. Out-of-bounds values will lead
455+
# to an error.
464456
startYear = 1
465457
endYear = 5
466458

docs/users_guide/analysis_tasks.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Analysis Tasks
3737
tasks/oceanRegionalProfiles
3838
tasks/regionalTSDiagrams
3939
tasks/oceanHistogram
40+
tasks/conservation
4041

4142
tasks/climatologyMapSeaIceConcNH
4243
tasks/climatologyMapSeaIceThickNH

docs/users_guide/config/index.rst

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,15 @@ determine the start and end years of climate indices (such as El Ni |n~| o
1313
[index]
1414
## options related to producing nino index.
1515

16-
# start and end years for El Nino 3.4 analysis. Use endYear = end to indicate
17-
# that the full range of the data should be used. If errorOnMissing = False,
18-
# the start and end year will be clipped to the valid range. Otherwise, out
19-
# of bounds values will lead to an error. In a "control" config file used in
20-
# a "main vs. control" analysis run, the range of years must be valid and
21-
# cannot include "end" because the original data may not be available.
16+
# start and end years for El Nino 3.4 analysis. Out-of-bounds values will lead
17+
# to an error.
2218
startYear = 1
23-
endYear = end
19+
endYear = 20
2420

2521
Start and End Year
2622
------------------
2723

2824
A custom config file should specify a start and end year for time axis.
29-
If ``errorOnMissing = False`` in the ``input`` section and the start or end
30-
year is beyond the range of the simulation, the range will be reduced to those
31-
dates with available data and a warning message will be displayed. If
32-
``errorOnMissing = True``, out of range year will produce an error.
25+
Out of range year will produce an error.
3326

3427

docs/users_guide/config/timeSeries.rst

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,16 @@ for anomalies::
1616
# only the anomaly over a later span of years is of interest.
1717
# anomalyRefYear = 249
1818

19-
# start and end years for timeseries analysis. Use endYear = end to indicate
20-
# that the full range of the data should be used. If errorOnMissing = False,
21-
# the start and end year will be clipped to the valid range. Otherwise, out
22-
# of bounds values will lead to an error. In a "control" config file used in
23-
# a "main vs. control" analysis run, the range of years must be valid and
24-
# cannot include "end" because the original data may not be available.
19+
# start and end years for timeseries analysis. Out-of-bounds values will lead
20+
# to an error.
2521
startYear = 1
26-
endYear = end
22+
endYear = 20
2723

2824
Start and End Year
2925
------------------
3026

3127
A custom config file should specify a start and end year for time series.
32-
If ``errorOnMissing = False`` in the ``input`` section and the start or end
33-
year is beyond the range of the simulation, the range will be reduced to those
34-
dates with available data and a warning message will be displayed. If
35-
``errorOnMissing = True``, out of range year will produce an error.
28+
Out of range year will produce an error.
3629

3730

3831
Anomaly Reference Year

0 commit comments

Comments
 (0)