Python Atmospheric Dynamics: Discovery and Learning about Exoplanets. An open-source, user-friendly python frontend of canoe
Project description
Paddle
Python Atmospheric Dynamics: Discovering and Learning about Exoplanets. An open-source, user-friendly Python version of canoe.
Test the package
Testing the package can be done very easily by following the steps below. All we need is to create a python virtual environment, install the package, and run the test script.
-
Create a python virtual environment
python -m venv pyenv
-
Install paddle package
pip install paddle
-
Run test
cd tests python test_saturn_adiabat.py
Develop with Docker
You may need to install Docker to compose up and install the package inside a container if your device or operating system does not support certain dependencies. Follow the instructions below to install docker and docker-compose plugin.
-
Install docker with compose
curl -fsSL https://get.docker.com | sudo sh
-
Start docker using the command below or open docker desktop if applicable.
sudo systemctl start docker
After installing Docker, you can use the Makefile commands below to manage your docker containers from the terminal. By default, the container will mount the current directory to /paddle inside the container.
Mounting a local directory allows you to edit files on your local machine while running and testing the code inside the container; or use the container as a development environment and sync files to your local machine.
If you want to change the mounted directory, you can create a docker-compose.overrides.yml file based on the provided docker-compose.overrides.yml.tmp template file.
-
Create a docker container
make up -
Start a docker container (only if previously created)
make start -
Terminate a docker container
make down -
Build a new docker image (rarely used)
make build
If you use VSCode, it is recommended to install extensions including Remote Development, Dev Containers and Container Tools for a better development experience within a container.
-
Install the extensions mentioned above.
-
Start the container using
make upormake start. -
Open VSCode and click on the "Containers" icon on the left sidebar. Note that if you have too many extensions installed, the icon may be hidden under the "..." menu.
-
Right click on the running container named
paddlewith a green triangle icon (indicating it is running), and select "Attach Visual Studio Code" (see above images). This will open a new VSCode window connected to the container. -
Open either the default folder
paddlemounted from your local machine, or any custom workspace folder you have set up inside thedocker-compose.overrides.ymlfile. Now you can start developing inside the container as if you were working on your local machine!
For Developers
Follow the steps below to set up your development environment.
-
Clone the repository
https://github.com/elijah-mullens/paddle
-
Cache your github credential. This will prevent you from being prompted for your username and password every time you push changes to github.
git config credential.helper 'cache --timeout=86400'
-
Create a python virtual environment.
python -m venv .pyenv
-
Install paddle package
# Install the package normally pip install paddle # [Alternatively] if you want to install in editable mode pip install -e .
-
Install pre-commit hook. This will automatically format your code before each commit to ensure consistent code style.
pip install pre-commit pre-commit install
Troubleshooting
-
If you have Docker installed but do not have Docker Compose, remove your current Docker installation, which could be docker or docker.io, and re-install it following the guide provided in the Develop with Docker section above.
-
If you run out of disk space while building the image. You can relocate the default location for container images: Here is a simple recipe:
- Generate config (if you don’t already have one):
sudo mkdir -p /etc/containerd containerd config default | sudo tee /etc/containerd/config.toml >/dev/null- Edit
/etc/containerd/config.tomland set:
root = "/home/containerd" # location where you have space state = "/run/containerd"- Restart
sudo systemctl restart containerd
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file paddle-1.2.4.tar.gz.
File metadata
- Download URL: paddle-1.2.4.tar.gz
- Upload date:
- Size: 1.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee45b40fbf61f536a846f1fb7f40b3bed505548401f29f6ca0fe38f54be2d579
|
|
| MD5 |
14006c2675b93e250a4eddc217cf315b
|
|
| BLAKE2b-256 |
dd68758633939ccef7d3305eb25f3be7ee000cb39ce1c9092d5208eade4bb1f0
|
Provenance
The following attestation bundles were made for paddle-1.2.4.tar.gz:
Publisher:
cd.yml on elijah-mullens/paddle
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
paddle-1.2.4.tar.gz -
Subject digest:
ee45b40fbf61f536a846f1fb7f40b3bed505548401f29f6ca0fe38f54be2d579 - Sigstore transparency entry: 909422267
- Sigstore integration time:
-
Permalink:
elijah-mullens/paddle@e63fe6ee4b0f3d748c28443af4d5d53414ddb947 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/elijah-mullens
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@e63fe6ee4b0f3d748c28443af4d5d53414ddb947 -
Trigger Event:
pull_request
-
Statement type:
File details
Details for the file paddle-1.2.4-py3-none-any.whl.
File metadata
- Download URL: paddle-1.2.4-py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b56c01eb4d83674ff182b709b1d0e9650714bbd4debb0a99bf51796bd0d0a8ac
|
|
| MD5 |
ca4fa84bb7b556449f5f3924a3ee6aa3
|
|
| BLAKE2b-256 |
982a34d2736dc4a36c74949f5a9bab83f5687ed1ccd3f2f99d40211e668c9a2c
|
Provenance
The following attestation bundles were made for paddle-1.2.4-py3-none-any.whl:
Publisher:
cd.yml on elijah-mullens/paddle
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
paddle-1.2.4-py3-none-any.whl -
Subject digest:
b56c01eb4d83674ff182b709b1d0e9650714bbd4debb0a99bf51796bd0d0a8ac - Sigstore transparency entry: 909422492
- Sigstore integration time:
-
Permalink:
elijah-mullens/paddle@e63fe6ee4b0f3d748c28443af4d5d53414ddb947 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/elijah-mullens
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@e63fe6ee4b0f3d748c28443af4d5d53414ddb947 -
Trigger Event:
pull_request
-
Statement type: