Installation#
ACCESS-MOPPy requires Python >= 3.11.
On NCI Gadi (recommended for ACCESS users)#
The conda/analysis3 environment maintained by ACCESS-NRI already includes
access_moppy and its dependencies:
module use /g/data/xp65/public/modules
module load conda/analysis3
All command-line tools (moppy-cmorise, moppy-tui, moppy-qc, …) are
available immediately after loading the module. You will need membership of
the relevant NCI projects to read model archives (e.g. p73) and the
xp65 project for the module itself.
From PyPI#
pip install access_moppy
From conda#
conda install -c accessnri access-moppy
From source#
The controlled vocabularies under src/access_moppy/vocabularies/ are pulled
in as git submodules. Clone with --recurse-submodules (or run
git submodule update --init --recursive in an existing clone) before
installing, otherwise the CMOR tables/CVs will be missing and imports will
fail with an error like No module named 'access_moppy.vocabularies.CMIP6_CVs'.
This only affects source installs — PyPI and conda packages already bundle
this data.
git clone --recurse-submodules https://github.com/ACCESS-NRI/ACCESS-MOPPy.git
cd ACCESS-MOPPy
pip install .
For development, the repository uses pixi to manage environments:
pixi install # create the default environment
pixi run pytest # run the test suite
pixi run docs-build # build this documentation
Optional extras#
Extra |
Installs |
Needed for |
|---|---|---|
|
|
|
|
|
|
|
ESMValCore integration deps |
|
|
Sphinx toolchain |
building the documentation |
|
pytest and friends |
running the test suite |
The Streamlit web dashboard (moppy-dashboard) additionally requires
streamlit:
pip install streamlit
Personal metadata setup#
The first time the default personal publication profile writes output, it
prompts for your name, email, organisation, and ORCID, and stores them in
~/.moppy/user.yml. Official ACCESS Consortium publication uses
publication_profile="access-consortium" and does not request personal
metadata. See Configuration reference.
Verifying the installation#
moppy-example-config # prints the bundled example batch config
python -c "import access_moppy; print(access_moppy.__version__)"