paddle 1.1.14__tar.gz → 1.1.15__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {paddle-1.1.14 → paddle-1.1.15}/.bumpversion.cfg +1 -1
- paddle-1.1.15/PKG-INFO +161 -0
- paddle-1.1.15/README.md +129 -0
- paddle-1.1.15/docs/_static/readme-attach.png +0 -0
- paddle-1.1.15/docs/_static/readme-extension.png +0 -0
- paddle-1.1.15/docs/_static/readme-open-folder.png +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/paddle/__init__.py +1 -1
- {paddle-1.1.14 → paddle-1.1.15}/pyproject.toml +1 -1
- paddle-1.1.14/PKG-INFO +0 -115
- paddle-1.1.14/README.md +0 -83
- {paddle-1.1.14 → paddle-1.1.15}/.github/workflows/cd.yml +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/.github/workflows/ci.yml +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/.gitignore +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/.pre-commit-config.yaml +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/LICENSE +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/Makefile +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/docker/.dockerignore +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/docker/Dockerfile +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/docker/Dockerfile.cuda +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/docker/entrypoint.sh +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/docker/nvim/init.lua +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/docker/nvim/lua/plugins.lua +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/docker/requirements.txt +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/docker/scripts/git-done +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/docker/scripts/git-send +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/docker-compose.override.yaml.tmp +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/docker-compose.yaml +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/docs/_static/temp_paddle.jpg +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/docs/content/notebooks/Tutorial-1-SaturnAdiabat.ipynb +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/example_py_scripts/.gitignore +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/example_py_scripts/robert.py +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/example_py_scripts/robert.yaml +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/example_py_scripts/saturn1d.yaml +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/example_py_scripts/shock.py +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/example_py_scripts/shock.yaml +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/example_py_scripts/straka.py +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/example_py_scripts/straka.yaml +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/example_py_scripts/test_saturn_adiabat.py +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/paddle/crm.py +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/paddle/evolve_kinetics.py +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/paddle/find_init_params.py +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/paddle/nc2pt.py +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/paddle/pt2nc.py +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/paddle/setup_profile.py +0 -0
- {paddle-1.1.14 → paddle-1.1.15}/paddle/write_profile.py +0 -0
paddle-1.1.15/PKG-INFO
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: paddle
|
|
3
|
+
Version: 1.1.15
|
|
4
|
+
Summary: Python Atmospheric Dynamics: Discovery and Learning about Exoplanets. An open-source, user-friendly python frontend of canoe
|
|
5
|
+
Project-URL: Homepage, https://github.com/elijah-mullens/paddle
|
|
6
|
+
Project-URL: Repository, https://github.com/elijah-mullens/paddle
|
|
7
|
+
Project-URL: Issues, https://github.com/elijah-mullens/paddle/issues
|
|
8
|
+
Author-email: Elijah Mullens <eem85@cornell.edu>, Cheng Li <chengcli@umich.edu>
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Intended Audience :: Science/Research
|
|
13
|
+
Classifier: Programming Language :: Python
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
+
Classifier: Topic :: Scientific/Engineering :: Astronomy
|
|
22
|
+
Classifier: Topic :: Scientific/Engineering :: Atmospheric Science
|
|
23
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
24
|
+
Requires-Python: >=3.9
|
|
25
|
+
Requires-Dist: kintera>=1.1.5
|
|
26
|
+
Requires-Dist: scipy
|
|
27
|
+
Requires-Dist: snapy>=0.8.1
|
|
28
|
+
Requires-Dist: torch<=2.7.1,>=2.7.0
|
|
29
|
+
Provides-Extra: dev
|
|
30
|
+
Requires-Dist: pytest>=7; extra == 'dev'
|
|
31
|
+
Description-Content-Type: text/markdown
|
|
32
|
+
|
|
33
|
+
# Paddle
|
|
34
|
+
|
|
35
|
+
Python Atmospheric Dynamics: Discovering and Learning about Exoplanets. An open-source, user-friendly Python version of [canoe](https://github.com/chengcli/canoe).
|
|
36
|
+
|
|
37
|
+
## Test the package
|
|
38
|
+
|
|
39
|
+
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.
|
|
40
|
+
|
|
41
|
+
1. Create a python virtual environment
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
python -m venv pyenv
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
2. Install paddle package
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
pip install paddle
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
3. Run test
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
cd tests
|
|
57
|
+
python test_saturn_adiabat.py
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Develop with Docker
|
|
61
|
+
|
|
62
|
+
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.
|
|
63
|
+
|
|
64
|
+
1. Install docker with compose
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
curl -fsSL https://get.docker.com | sudo sh
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
2. Start docker using the command below or open docker desktop if applicable.
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
sudo systemctl start docker
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
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.
|
|
77
|
+
|
|
78
|
+
> 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.
|
|
79
|
+
|
|
80
|
+
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.
|
|
81
|
+
|
|
82
|
+
- Create a docker container
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
make up
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
- Start a docker container (only if previously created)
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
make start
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
- Terminate a docker container
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
make down
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
- Build a new docker image (rarely used)
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
make build
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
If you use VSCode, it is recommended to install extensions including [Remote Development](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack), [Dev Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) and [Container Tools](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-containers) for a better development experience within a container.
|
|
107
|
+
|
|
108
|
+
1. Install the extensions mentioned above.
|
|
109
|
+
2. Start the container using `make up` or `make start`.
|
|
110
|
+
3. 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.
|
|
111
|
+
|
|
112
|
+
<img src="docs/_static/readme-extension.png" width="200" style="vertical-align: top;">
|
|
113
|
+
<img src="docs/_static/readme-attach.png" width="200" style="vertical-align: top;">
|
|
114
|
+
|
|
115
|
+
4. Right click on the running container named `paddle` with 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.
|
|
116
|
+
5. Open either the default folder `paddle` mounted from your local machine, or any custom workspace folder you have set up inside the `docker-compose.overrides.yml` file. Now you can start developing inside the container as if you were working on your local machine!
|
|
117
|
+
|
|
118
|
+
<img src="docs/_static/readme-open-folder.png" width="500" style="vertical-align: top;">
|
|
119
|
+
|
|
120
|
+
## For Developers
|
|
121
|
+
|
|
122
|
+
Follow the steps below to set up your development environment.
|
|
123
|
+
|
|
124
|
+
1. Clone the repository
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
https://github.com/elijah-mullens/paddle
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
2. Cache your github credential. This will prevent you from being prompted for your username and password every time you push changes to github.
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
git config credential.helper 'cache --timeout=86400'
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
3. Create a python virtual environment.
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
python -m venv .pyenv
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
4. Install paddle package
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
# Install the package normally
|
|
146
|
+
pip install paddle
|
|
147
|
+
|
|
148
|
+
# [Alternatively] if you want to install in editable mode
|
|
149
|
+
pip install -e .
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
5. Install pre-commit hook. This will automatically format your code before each commit to ensure consistent code style.
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
pip install pre-commit
|
|
156
|
+
pre-commit install
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
## Troubleshooting
|
|
160
|
+
|
|
161
|
+
1. 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](#develop-with-docker) section above.
|
paddle-1.1.15/README.md
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# Paddle
|
|
2
|
+
|
|
3
|
+
Python Atmospheric Dynamics: Discovering and Learning about Exoplanets. An open-source, user-friendly Python version of [canoe](https://github.com/chengcli/canoe).
|
|
4
|
+
|
|
5
|
+
## Test the package
|
|
6
|
+
|
|
7
|
+
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.
|
|
8
|
+
|
|
9
|
+
1. Create a python virtual environment
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
python -m venv pyenv
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
2. Install paddle package
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
pip install paddle
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
3. Run test
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
cd tests
|
|
25
|
+
python test_saturn_adiabat.py
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Develop with Docker
|
|
29
|
+
|
|
30
|
+
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.
|
|
31
|
+
|
|
32
|
+
1. Install docker with compose
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
curl -fsSL https://get.docker.com | sudo sh
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
2. Start docker using the command below or open docker desktop if applicable.
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
sudo systemctl start docker
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
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.
|
|
45
|
+
|
|
46
|
+
> 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.
|
|
47
|
+
|
|
48
|
+
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.
|
|
49
|
+
|
|
50
|
+
- Create a docker container
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
make up
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
- Start a docker container (only if previously created)
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
make start
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
- Terminate a docker container
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
make down
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
- Build a new docker image (rarely used)
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
make build
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
If you use VSCode, it is recommended to install extensions including [Remote Development](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack), [Dev Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) and [Container Tools](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-containers) for a better development experience within a container.
|
|
75
|
+
|
|
76
|
+
1. Install the extensions mentioned above.
|
|
77
|
+
2. Start the container using `make up` or `make start`.
|
|
78
|
+
3. 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.
|
|
79
|
+
|
|
80
|
+
<img src="docs/_static/readme-extension.png" width="200" style="vertical-align: top;">
|
|
81
|
+
<img src="docs/_static/readme-attach.png" width="200" style="vertical-align: top;">
|
|
82
|
+
|
|
83
|
+
4. Right click on the running container named `paddle` with 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.
|
|
84
|
+
5. Open either the default folder `paddle` mounted from your local machine, or any custom workspace folder you have set up inside the `docker-compose.overrides.yml` file. Now you can start developing inside the container as if you were working on your local machine!
|
|
85
|
+
|
|
86
|
+
<img src="docs/_static/readme-open-folder.png" width="500" style="vertical-align: top;">
|
|
87
|
+
|
|
88
|
+
## For Developers
|
|
89
|
+
|
|
90
|
+
Follow the steps below to set up your development environment.
|
|
91
|
+
|
|
92
|
+
1. Clone the repository
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
https://github.com/elijah-mullens/paddle
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
2. Cache your github credential. This will prevent you from being prompted for your username and password every time you push changes to github.
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
git config credential.helper 'cache --timeout=86400'
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
3. Create a python virtual environment.
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
python -m venv .pyenv
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
4. Install paddle package
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
# Install the package normally
|
|
114
|
+
pip install paddle
|
|
115
|
+
|
|
116
|
+
# [Alternatively] if you want to install in editable mode
|
|
117
|
+
pip install -e .
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
5. Install pre-commit hook. This will automatically format your code before each commit to ensure consistent code style.
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
pip install pre-commit
|
|
124
|
+
pre-commit install
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
## Troubleshooting
|
|
128
|
+
|
|
129
|
+
1. 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](#develop-with-docker) section above.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "paddle"
|
|
7
|
-
version = "1.1.
|
|
7
|
+
version = "1.1.15"
|
|
8
8
|
description = "Python Atmospheric Dynamics: Discovery and Learning about Exoplanets. An open-source, user-friendly python frontend of canoe"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
paddle-1.1.14/PKG-INFO
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: paddle
|
|
3
|
-
Version: 1.1.14
|
|
4
|
-
Summary: Python Atmospheric Dynamics: Discovery and Learning about Exoplanets. An open-source, user-friendly python frontend of canoe
|
|
5
|
-
Project-URL: Homepage, https://github.com/elijah-mullens/paddle
|
|
6
|
-
Project-URL: Repository, https://github.com/elijah-mullens/paddle
|
|
7
|
-
Project-URL: Issues, https://github.com/elijah-mullens/paddle/issues
|
|
8
|
-
Author-email: Elijah Mullens <eem85@cornell.edu>, Cheng Li <chengcli@umich.edu>
|
|
9
|
-
License-File: LICENSE
|
|
10
|
-
Classifier: Development Status :: 3 - Alpha
|
|
11
|
-
Classifier: Intended Audience :: Developers
|
|
12
|
-
Classifier: Intended Audience :: Science/Research
|
|
13
|
-
Classifier: Programming Language :: Python
|
|
14
|
-
Classifier: Programming Language :: Python :: 3
|
|
15
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
-
Classifier: Topic :: Scientific/Engineering :: Astronomy
|
|
22
|
-
Classifier: Topic :: Scientific/Engineering :: Atmospheric Science
|
|
23
|
-
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
24
|
-
Requires-Python: >=3.9
|
|
25
|
-
Requires-Dist: kintera>=1.1.5
|
|
26
|
-
Requires-Dist: scipy
|
|
27
|
-
Requires-Dist: snapy>=0.8.1
|
|
28
|
-
Requires-Dist: torch<=2.7.1,>=2.7.0
|
|
29
|
-
Provides-Extra: dev
|
|
30
|
-
Requires-Dist: pytest>=7; extra == 'dev'
|
|
31
|
-
Description-Content-Type: text/markdown
|
|
32
|
-
|
|
33
|
-
# paddle
|
|
34
|
-
Python Atmospheric Dynamics: Discovering and Learning about Exoplanets. An open-source, user-friendly python version of canoe.
|
|
35
|
-
|
|
36
|
-
## Install docker and docker-compose plugin
|
|
37
|
-
1. install docker with compose
|
|
38
|
-
```bash
|
|
39
|
-
curl -fsSL https://get.docker.com | sudo sh
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
1. start docker
|
|
43
|
-
sudo systemctl start docker
|
|
44
|
-
|
|
45
|
-
## Test package
|
|
46
|
-
1. Create a python virtual environment
|
|
47
|
-
```bash
|
|
48
|
-
python -m venv pyenv
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
2. Install paddle package
|
|
52
|
-
```bash
|
|
53
|
-
pip install paddle
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
3. Run test
|
|
57
|
-
```bash
|
|
58
|
-
cd tests
|
|
59
|
-
python test_saturn_adiabat.py
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
## Docker user guide
|
|
63
|
-
|
|
64
|
-
2. Create a docker container
|
|
65
|
-
```bash
|
|
66
|
-
make up
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
3. Terminate a docker container
|
|
70
|
-
```bash
|
|
71
|
-
make down
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
4. Start a docker container
|
|
75
|
-
```bash
|
|
76
|
-
make start
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
5. Build a new docker image (rarely used)
|
|
80
|
-
```bash
|
|
81
|
-
make build
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
## For Developer
|
|
85
|
-
|
|
86
|
-
### Clone repository
|
|
87
|
-
```bash
|
|
88
|
-
https://github.com/elijah-mullens/paddle
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
### Cache your github credential
|
|
92
|
-
```bash
|
|
93
|
-
git config credential.helper 'cache --timeout=86400'
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
### Create a python virtual environment
|
|
97
|
-
```bash
|
|
98
|
-
python -m venv .pyenv
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
### Install paddle package
|
|
102
|
-
|
|
103
|
-
### Install pre-commit hook
|
|
104
|
-
```bash
|
|
105
|
-
pip install pre-commit
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
### Install pre-commit hook
|
|
109
|
-
```bash
|
|
110
|
-
pre-commit install
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
## Troubleshooting
|
|
114
|
-
1. If you do not have docker compose
|
|
115
|
-
Remove your current docker installation, it could be docker or docker.io
|
paddle-1.1.14/README.md
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
# paddle
|
|
2
|
-
Python Atmospheric Dynamics: Discovering and Learning about Exoplanets. An open-source, user-friendly python version of canoe.
|
|
3
|
-
|
|
4
|
-
## Install docker and docker-compose plugin
|
|
5
|
-
1. install docker with compose
|
|
6
|
-
```bash
|
|
7
|
-
curl -fsSL https://get.docker.com | sudo sh
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
1. start docker
|
|
11
|
-
sudo systemctl start docker
|
|
12
|
-
|
|
13
|
-
## Test package
|
|
14
|
-
1. Create a python virtual environment
|
|
15
|
-
```bash
|
|
16
|
-
python -m venv pyenv
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
2. Install paddle package
|
|
20
|
-
```bash
|
|
21
|
-
pip install paddle
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
3. Run test
|
|
25
|
-
```bash
|
|
26
|
-
cd tests
|
|
27
|
-
python test_saturn_adiabat.py
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## Docker user guide
|
|
31
|
-
|
|
32
|
-
2. Create a docker container
|
|
33
|
-
```bash
|
|
34
|
-
make up
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
3. Terminate a docker container
|
|
38
|
-
```bash
|
|
39
|
-
make down
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
4. Start a docker container
|
|
43
|
-
```bash
|
|
44
|
-
make start
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
5. Build a new docker image (rarely used)
|
|
48
|
-
```bash
|
|
49
|
-
make build
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
## For Developer
|
|
53
|
-
|
|
54
|
-
### Clone repository
|
|
55
|
-
```bash
|
|
56
|
-
https://github.com/elijah-mullens/paddle
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
### Cache your github credential
|
|
60
|
-
```bash
|
|
61
|
-
git config credential.helper 'cache --timeout=86400'
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
### Create a python virtual environment
|
|
65
|
-
```bash
|
|
66
|
-
python -m venv .pyenv
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
### Install paddle package
|
|
70
|
-
|
|
71
|
-
### Install pre-commit hook
|
|
72
|
-
```bash
|
|
73
|
-
pip install pre-commit
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
### Install pre-commit hook
|
|
77
|
-
```bash
|
|
78
|
-
pre-commit install
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
## Troubleshooting
|
|
82
|
-
1. If you do not have docker compose
|
|
83
|
-
Remove your current docker installation, it could be docker or docker.io
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|