Giter Site home page Giter Site logo

andersy005 / hires-cesm-analysis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marbl-ecosys/hires-cesm-analysis

0.0 2.0 0.0 635.55 MB

Notebooks and tools for validating the 0.1 degree POP / CICE run with ocean BGC

Jupyter Notebook 90.58% Python 7.69% Shell 1.72%

hires-cesm-analysis's Introduction

GitHub Workflow Status GitHub Workflow Status

HiRes-CESM Analysis

This repository is building a set of tools for analyzing BGC output in a high-resolution POP run.

For Developers

A few recommended practices to incorporate in your development sandbox:

Keep your conda environment up to date

The first time you check out this repository, run

$ conda env install -f environments/environment.yaml

If you notice the YAML file has changed after you fetch changes from github, update the environment with

$ conda env update -f environments/environment.yaml

If the env update command fails, you can remove the environment and re-create it:

$ conda env remove --name hires-marbl
$ conda env create -f environments/environment.yaml

Use pre-commit to test code before commiting

Please take advantage of the pre-commit package to ensure that black is run before commiting:

$ pre-commit install --install-hooks # set up pre-commit
$ pre-commit run -a                  # check all the files currently in the repo

The pre-commit package is already installed via the hires-marbl conda environment. There is a github action to run these checks on all pull requests, but running them locally via-pre-commit will reduce the number of failed actions. NOTE: for some reason, to properly install pre-commit on the CISL systems, the above command must be run from casper rather than cheyenne.

Note that pre-commit creates a virtual environment using specific tags of each package. As newer versions of black become available on conda-forge, we will update the pre-commit environment.

Run pytest after modifying python in utils/

To test some of the python code in notebooks/utils/, run pytest. These tests can be run from the top level of this repository by running

$ pytest tests/

If you add new code to this directory, consider writing small tests to ensure it is running as expected.

hires-cesm-analysis's People

Contributors

mnlevy1981 avatar klindsay28 avatar andersy005 avatar mgrover1 avatar matt-long avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.