Skip to content
This repository was archived by the owner on Sep 21, 2025. It is now read-only.

Commit d5935b8

Browse files
authored
Merge pull request #222 from ACCESS-Community-Hub/prerelease
Prerelease
2 parents 9b619e4 + 9cacc8e commit d5935b8

File tree

12 files changed

+40
-17
lines changed

12 files changed

+40
-17
lines changed

ACDD_conf.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ cmor:
9797
grids: "ACDD_grids.json"
9898
# Additional NCI information:
9999
# NCI project to charge compute; $PROJECT = your default project
100-
project: v45
100+
project: <proj-id>
101101
# additional NCI projects to be included in the storage flags, comma separated list
102102
addprojs: []
103103
# queue and memory (GB) per CPU (depends on queue),

CMIP6_conf.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ cmor:
9090
grids: CMIP6_grids.json
9191
# Additional NCI information:
9292
# NCI project to charge compute; $PROJECT = your default project
93-
project: v45
93+
project: <proj-id>
9494
# additional NCI projects to be included in the storage flags, comma separated list
9595
addprojs: []
9696
# queue and memory (GB) per CPU (depends on queue)

conda/environment.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,18 @@ dependencies:
66
- anaconda-client
77
- conda-build
88
- conda-verify
9+
- python #=3.11
10+
- click
11+
- xarray>=2024.05.0
12+
- cmor #=3.11.0
13+
- numpy
14+
- dask
15+
- pyyaml
16+
- cftime
17+
- python-dateutil
18+
- metpy
19+
- gsw
20+
- pytest
21+
- pyfakefs
22+
- coverage
23+
- codecov

conda/meta.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
package:
22
name: mopper
33
#version: "{{ environ.get('GIT_DESCRIBE_TAG', '1.0') }}"
4-
version: '1.2.0'
4+
version: '1.3.0'
55
#source:
66
# path: ../.
77

88
source:
99
#url: https://github.com/ACCESS-Hive/ACCESS-MOPPeR/archive/refs/tags/{{ environ.get('RELEASE_VERSION') }}.tar.gz
1010
git_url: https://github.com/ACCESS-Hive/ACCESS-MOPPeR.git
11-
git_tag: "1.2.0"
11+
git_tag: "1.3.0"
1212
#git_rev: "1.1.0"
1313
#git_depth: 1 # (Defaults to -1/not shallow)
1414

@@ -28,7 +28,7 @@ requirements:
2828
- python
2929
- click
3030
- xarray>=2024.05.0
31-
- cmor
31+
- cmor #=3.11.0
3232
- numpy
3333
- dask
3434
- pyyaml

docs/cmor_conf.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ cmor:
101101
# walltime in "hh:mm:ss"
102102
walltime: '8:00:00'
103103
mode: custom
104-
# conda_env to use by default hh5 analysis3-unstable
104+
# conda_env to use by default xp65 analysis3 (stable)
105105
# as this has the code and all dependecies installed
106106
# you can override that by supplying the env to pass to "source"
107107
# Ex

docs/mopdb_command.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ The `del` sub-command allows to delete one or more records from the selected tab
209209
Selecting a database
210210
--------------------
211211

212-
By default, if using the package installed in the hh5 conda environment, mopdb will use the `access.db` database which comes with the package.
212+
By default mopdb will use the `access.db` database which comes with the installed package.
213213
If a user wants to modify the database, they will need to get a copy of the official database or define a new one from scratch as shown above.
214214
Then the `--dbname <database-name>` option can be used to select the custom database.
215215

docs/output.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,18 @@ This folder will contain the following files:
6161
| #!/bin/bash
6262
| #PBS -P v45
6363
| #PBS -q hugemem
64-
| #PBS -l storage=gdata/hh5+gdata/ua8+scratch/ly62+scratch/v45+gdata/v45
64+
| #PBS -l storage=gdata/xp65+gdata/ua8+scratch/ly62+scratch/v45+gdata/v45
6565
| #PBS -l ncpus=24,walltime=12:00:00,mem=768GB,wd
6666
| #PBS -j oe
6767
| #PBS -o /scratch/v45/pxp581/MOPPER_output/ashwed1980/job_output.OU
6868
| #PBS -N mopper_ashwed1980
6969
|
70-
| # the code assumes you are running this on gadi and have access to the hh5 project modules
70+
| # the code assumes you are running this on gadi and have access to the xp65 project modules
7171
| # if this is not the case make sure you have loaded alternative python modules
7272
| # see https://github.com/ACCESS-Community-Hub/ACCESS-MOPPeR/blob/main/requirements.txt
7373
| # for a list of packages
7474
|
75-
| module use /g/data/hh5/public/modules
75+
| module use /g/data/xp65/public/modules
7676
| module load conda/analysis3
7777
| source mopper_env/bin/activate # if using conda option
7878
|

docs/overview.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ Install
22
=======
33

44
ACCESS-MOPPeR is available at NCI on the hh5 conda environments.
5-
To access a more recent version, you can create a custom conda environment and install mopper following these steps:
5+
As these will be soon phased out you will have to create your own custom conda environment or local installation.
6+
We reccommed to use the ACCESS-NRI conda envs (xp65) as base, as these will have most of the requirements available.
7+
8+
To create a custom conda environment and install mopper following these steps:
69

710
1. module load conda/analysis3
811
2. export PYTHONNOUSERSITE=1

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# Optional dependencies e.g. [dev] are added in `test-requirements`
33
click
44
xarray>=2024.05.0
5-
cmor
5+
# tested to work with CMOR 3.11.0
6+
cmor
67
numpy
78
pyyaml
89
dask

src/mopper/mop_setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# originally written for CMIP5 by Peter Uhe and dapted for CMIP6 by Chloe Mackallah
2020
# ( https://doi.org/10.5281/zenodo.7703469 )
2121
#
22-
# last updated 10/10/2024
22+
# last updated 01/08/2025
2323

2424
import os
2525
import shutil
@@ -96,7 +96,10 @@ def find_matches(table, var, realm, frequency, mappings):
9696
resample = match.get('resample', '')
9797
timeshot, frequency, orig_timeshot = define_timeshot(frequency, resample,
9898
match['cell_methods'])
99-
match['resample'] = f"{resample} {orig_timeshot}"
99+
if resample != "":
100+
resample = f"{resample} {orig_timeshot}"
101+
match['resample'] = resample
102+
mop_log.debug(f"Resample is {resample}")
100103
match['timeshot'] = timeshot
101104
match['table'] = table
102105
match['frequency'] = frequency

0 commit comments

Comments
 (0)