Python scripts for Oceananigans.jl NetCDF output
You can install pynanigans directly from the repository:
pip install git+https://github.com/yourusername/pynanigans.git
Or install from a local clone:
git clone https://github.com/yourusername/pynanigans.git
cd pynanigans
pip install -e .
If you prefer using conda, you can create an environment with all dependencies:
# Clone the repository
git clone https://github.com/yourusername/pynanigans.git
cd pynanigans
# Create and activate conda environment
conda env create -f environment.yml
conda activate p39
# Install the package
pip install -e .
The package requires:
- Python >= 3.9
- numpy
- xarray
- xgcm
- matplotlib
To set up a development environment:
- Clone the repository:
git clone https://github.com/yourusername/pynanigans.git
cd pynanigans
- Create a virtual environment and install dependencies:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -e ".[dev]"
- Install development dependencies:
pip install pytest pytest-cov
- Run tests:
pytest tests/
See the LICENSE file for details.