Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for building, running and testing benchcab #240

Open
abhaasgoyal opened this issue Jan 22, 2024 · 2 comments · May be fixed by #245
Open

Add documentation for building, running and testing benchcab #240

abhaasgoyal opened this issue Jan 22, 2024 · 2 comments · May be fixed by #245
Assignees
Labels
documentation Improvements or additions to documentation priority:high High priority issues that should be included in the next release.

Comments

@abhaasgoyal
Copy link

abhaasgoyal commented Jan 22, 2024

Building

Dependencies

  • conda env

Dev-Dependencies

  • black, ruff
module load conda
conda env create --name benchcab-dev --file .conda/benchcab-dev.yaml
conda activate benchcab-dev
pip install --user -e .
  • mkdocs
pip install -r mkdocs-requirements.txt

If using on Gadi, use ssh port forwarding

ssh -L 8000:localhost:8000 <username>@gadi.nci.org.au
mkdocs serve

Running

Follow the user guide

Testing

  • pytest, mypy
  • Integration tests
/bin/bash benchcab/data/test/integration.sh

Comparing Models

  • netcdf, cdo

Tips

Add a docstring using numpy style. (autodocstring extension in VS Code can pre-populate for you, make sure to select numpy style on settings first).

@abhaasgoyal abhaasgoyal added the documentation Improvements or additions to documentation label Jan 22, 2024
@abhaasgoyal abhaasgoyal self-assigned this Jan 22, 2024
@SeanBryan51
Copy link
Collaborator

I think we use nccmp for doing bitwise comparisons between model outputs. I don't think we use cdo?

@abhaasgoyal
Copy link
Author

abhaasgoyal commented Jan 22, 2024

@ccarouge could you clarify which module we use for doing bitwise comparisons, and what's the corresponding command?

@SeanBryan51 SeanBryan51 added the priority:high High priority issues that should be included in the next release. label Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation priority:high High priority issues that should be included in the next release.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants