paddle 1.1.14__tar.gz → 1.1.16__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.
Files changed (46) hide show
  1. {paddle-1.1.14 → paddle-1.1.16}/.bumpversion.cfg +1 -1
  2. paddle-1.1.16/PKG-INFO +161 -0
  3. paddle-1.1.16/README.md +129 -0
  4. paddle-1.1.16/docs/_static/readme-attach.png +0 -0
  5. paddle-1.1.16/docs/_static/readme-extension.png +0 -0
  6. paddle-1.1.16/docs/_static/readme-open-folder.png +0 -0
  7. {paddle-1.1.14 → paddle-1.1.16}/example_py_scripts/robert.yaml +1 -1
  8. {paddle-1.1.14 → paddle-1.1.16}/example_py_scripts/test_saturn_adiabat.py +2 -1
  9. {paddle-1.1.14 → paddle-1.1.16}/paddle/__init__.py +1 -1
  10. {paddle-1.1.14 → paddle-1.1.16}/paddle/crm.py +3 -3
  11. {paddle-1.1.14 → paddle-1.1.16}/paddle/evolve_kinetics.py +3 -2
  12. paddle-1.1.16/paddle/example_save.py +22 -0
  13. {paddle-1.1.14 → paddle-1.1.16}/paddle/find_init_params.py +2 -1
  14. {paddle-1.1.14 → paddle-1.1.16}/paddle/setup_profile.py +7 -6
  15. {paddle-1.1.14 → paddle-1.1.16}/paddle/write_profile.py +3 -2
  16. {paddle-1.1.14 → paddle-1.1.16}/pyproject.toml +1 -1
  17. paddle-1.1.14/PKG-INFO +0 -115
  18. paddle-1.1.14/README.md +0 -83
  19. {paddle-1.1.14 → paddle-1.1.16}/.github/workflows/cd.yml +0 -0
  20. {paddle-1.1.14 → paddle-1.1.16}/.github/workflows/ci.yml +0 -0
  21. {paddle-1.1.14 → paddle-1.1.16}/.gitignore +0 -0
  22. {paddle-1.1.14 → paddle-1.1.16}/.pre-commit-config.yaml +0 -0
  23. {paddle-1.1.14 → paddle-1.1.16}/LICENSE +0 -0
  24. {paddle-1.1.14 → paddle-1.1.16}/Makefile +0 -0
  25. {paddle-1.1.14 → paddle-1.1.16}/docker/.dockerignore +0 -0
  26. {paddle-1.1.14 → paddle-1.1.16}/docker/Dockerfile +0 -0
  27. {paddle-1.1.14 → paddle-1.1.16}/docker/Dockerfile.cuda +0 -0
  28. {paddle-1.1.14 → paddle-1.1.16}/docker/entrypoint.sh +0 -0
  29. {paddle-1.1.14 → paddle-1.1.16}/docker/nvim/init.lua +0 -0
  30. {paddle-1.1.14 → paddle-1.1.16}/docker/nvim/lua/plugins.lua +0 -0
  31. {paddle-1.1.14 → paddle-1.1.16}/docker/requirements.txt +0 -0
  32. {paddle-1.1.14 → paddle-1.1.16}/docker/scripts/git-done +0 -0
  33. {paddle-1.1.14 → paddle-1.1.16}/docker/scripts/git-send +0 -0
  34. {paddle-1.1.14 → paddle-1.1.16}/docker-compose.override.yaml.tmp +0 -0
  35. {paddle-1.1.14 → paddle-1.1.16}/docker-compose.yaml +0 -0
  36. {paddle-1.1.14 → paddle-1.1.16}/docs/_static/temp_paddle.jpg +0 -0
  37. {paddle-1.1.14 → paddle-1.1.16}/docs/content/notebooks/Tutorial-1-SaturnAdiabat.ipynb +0 -0
  38. {paddle-1.1.14 → paddle-1.1.16}/example_py_scripts/.gitignore +0 -0
  39. {paddle-1.1.14 → paddle-1.1.16}/example_py_scripts/robert.py +0 -0
  40. {paddle-1.1.14 → paddle-1.1.16}/example_py_scripts/saturn1d.yaml +0 -0
  41. {paddle-1.1.14 → paddle-1.1.16}/example_py_scripts/shock.py +0 -0
  42. {paddle-1.1.14 → paddle-1.1.16}/example_py_scripts/shock.yaml +0 -0
  43. {paddle-1.1.14 → paddle-1.1.16}/example_py_scripts/straka.py +0 -0
  44. {paddle-1.1.14 → paddle-1.1.16}/example_py_scripts/straka.yaml +0 -0
  45. {paddle-1.1.14 → paddle-1.1.16}/paddle/nc2pt.py +0 -0
  46. {paddle-1.1.14 → paddle-1.1.16}/paddle/pt2nc.py +0 -0
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 1.1.14
2
+ current_version = 1.1.16
3
3
  commit = True
4
4
  tag = True
5
5
 
paddle-1.1.16/PKG-INFO ADDED
@@ -0,0 +1,161 @@
1
+ Metadata-Version: 2.4
2
+ Name: paddle
3
+ Version: 1.1.16
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.
@@ -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.
@@ -15,7 +15,7 @@ geometry:
15
15
  distribute:
16
16
  backend: gloo
17
17
  layout: slab
18
- nb2: 4
18
+ nb2: 1
19
19
  nb3: 1
20
20
  verbose: false
21
21
 
@@ -14,7 +14,8 @@ from pathlib import Path
14
14
 
15
15
  def setup_saturn_profile():
16
16
  # path = resources.files("paddle") / "data" / "saturn1d.yaml"
17
- path = Path("data") / "saturn1d.yaml"
17
+ # path = Path("data") / "saturn1d.yaml"
18
+ path = "saturn1d.yaml"
18
19
  print(f"Reading input file: {path}")
19
20
 
20
21
  op_block = MeshBlockOptions.from_yaml(str(path))
@@ -4,4 +4,4 @@ from .find_init_params import find_init_params
4
4
  from .evolve_kinetics import evolve_kinetics
5
5
 
6
6
  __all__ = ["setup_profile", "write_profile", "find_init_params", "evolve_kinetics"]
7
- __version__ = "1.1.14"
7
+ __version__ = "1.1.16"
@@ -4,7 +4,6 @@ import time
4
4
  import kintera
5
5
  import numpy as np
6
6
  from snapy import (
7
- index,
8
7
  MeshBlockOptions,
9
8
  MeshBlock,
10
9
  OutputOptions,
@@ -16,6 +15,7 @@ from kintera import (
16
15
  KineticsOptions,
17
16
  Kinetics,
18
17
  )
18
+ from snapy import kIDN, kICY
19
19
 
20
20
  if __name__ == "__main__":
21
21
  # input file
@@ -59,7 +59,7 @@ if __name__ == "__main__":
59
59
 
60
60
  if count % 1 == 0:
61
61
  print(f"count = {count}, dt = {dt}, time = {current_time}")
62
- print("mass = ", u[interior][index.idn].sum())
62
+ print("mass = ", u[interior][kIDN].sum())
63
63
 
64
64
  for out in outs:
65
65
  out.increment_file_number()
@@ -70,7 +70,7 @@ if __name__ == "__main__":
70
70
  block.forward(dt, stage)
71
71
 
72
72
  # evolve kinetics
73
- u[index.icy :] += evolve_kinetics(block, kinet, thermo_x)
73
+ u[kICY:] += evolve_kinetics(block, kinet, thermo_x)
74
74
 
75
75
  current_time += dt
76
76
  count += 1
@@ -1,6 +1,7 @@
1
1
  import torch
2
2
  import snapy
3
3
  import kintera
4
+ from snapy import kIDN, kIPR, kICY
4
5
 
5
6
 
6
7
  def evolve_kinetics(
@@ -27,8 +28,8 @@ def evolve_kinetics(
27
28
  thermo_y = block.module("hydro.eos.thermo")
28
29
 
29
30
  temp = eos.compute("W->T", (hydro_w,))
30
- pres = hydro_w[snapy.index.ipr]
31
- xfrac = thermo_y.compute("Y->X", (hydro_w[snapy.index.icy :],))
31
+ pres = hydro_w[kIPR]
32
+ xfrac = thermo_y.compute("Y->X", (hydro_w[kICY:],))
32
33
  conc = thermo_x.compute("TPX->V", (temp, pres, xfrac))
33
34
  cp_vol = thermo_x.compute("TV->cp", (temp, conc))
34
35
 
@@ -0,0 +1,22 @@
1
+ import torch
2
+ import types
3
+
4
+
5
+ def save_tensors(tensor_map: dict[str, torch.Tensor], filename: str):
6
+ class TensorModule(torch.nn.Module):
7
+ def __init__(self, tensors):
8
+ super().__init__()
9
+ for name, tensor in tensors.items():
10
+ self.register_buffer(name, tensor)
11
+
12
+ module = TensorModule(tensor_map)
13
+ scripted = torch.jit.script(module) # Needed for LibTorch compatibility
14
+ scripted.save(filename)
15
+
16
+
17
+ if __name__ == "__main__":
18
+ tensors = {
19
+ "foo": torch.randn(3, 4),
20
+ "bar": torch.randn(5, 6),
21
+ }
22
+ save_tensors(tensors, "foo_bar.pt")
@@ -1,6 +1,7 @@
1
1
  from scipy.interpolate import interp1d
2
2
  import snapy
3
3
  import numpy as np
4
+ from snapy import kIPR
4
5
 
5
6
  from .setup_profile import setup_profile
6
7
 
@@ -46,7 +47,7 @@ def find_init_params(
46
47
  temp = eos.compute("W->T", (w,)).squeeze()
47
48
 
48
49
  # calculate 1D pressure
49
- pres = w[snapy.index.ipr, ...].squeeze()
50
+ pres = w[kIPR, ...].squeeze()
50
51
 
51
52
  # temperature function
52
53
  t_func = interp1d(
@@ -3,6 +3,7 @@ from typing import Tuple
3
3
  import torch
4
4
  import snapy
5
5
  import kintera
6
+ from snapy import kIDN, kIPR, kICY
6
7
 
7
8
 
8
9
  def integrate_neutral(
@@ -248,9 +249,9 @@ def setup_profile(
248
249
  xfrac /= xfrac.sum(dim=-1, keepdim=True)
249
250
  conc = thermo_x.compute("TPX->V", [temp, pres, xfrac])
250
251
 
251
- w[snapy.index.ipr, ..., i] = pres
252
- w[snapy.index.idn, ..., i] = thermo_x.compute("V->D", [conc])
253
- w[snapy.index.icy :, ..., i] = thermo_x.compute("X->Y", [xfrac])
252
+ w[kIPR, ..., i] = pres
253
+ w[kIDN, ..., i] = thermo_x.compute("V->D", [conc])
254
+ w[kICY:, ..., i] = thermo_x.compute("X->Y", [xfrac])
254
255
 
255
256
  dz = coord.buffer("dx1f")[i]
256
257
  if method.split("-")[0] == "dry":
@@ -279,7 +280,7 @@ def setup_profile(
279
280
  dz = coord.buffer("dx1f")[i]
280
281
  pres *= torch.exp(-grav * mu * dz / (kintera.constants.Rgas * temp))
281
282
  conc = thermo_x.compute("TPX->V", [temp, pres, xfrac])
282
- w[snapy.index.ipr, ..., i] = pres
283
- w[snapy.index.idn, ..., i] = thermo_x.compute("V->D", [conc])
284
- w[snapy.index.icy :, ..., i] = thermo_x.compute("X->Y", [xfrac])
283
+ w[kIPR, ..., i] = pres
284
+ w[kIDN, ..., i] = thermo_x.compute("V->D", [conc])
285
+ w[kICY:, ..., i] = thermo_x.compute("X->Y", [xfrac])
285
286
  return w
@@ -6,6 +6,7 @@ import numpy as np
6
6
  import torch
7
7
  import kintera
8
8
  import snapy
9
+ from snapy import kIPR, kICY
9
10
 
10
11
 
11
12
  def write_profile(
@@ -47,7 +48,7 @@ def write_profile(
47
48
  raise ValueError("hydro_w must have shape (N, 1, 1, L).")
48
49
 
49
50
  # calculate a height grid
50
- pres = hydro_w[snapy.index.ipr, ...].squeeze() / 1.0e5 # Pa -> bar
51
+ pres = hydro_w[kIPR, ...].squeeze() / 1.0e5 # Pa -> bar
51
52
  zlev_func = interp1d(
52
53
  pres.log().cpu().numpy(),
53
54
  coord.buffer("x1v").cpu().numpy(),
@@ -61,7 +62,7 @@ def write_profile(
61
62
  temp = eos.compute("W->T", (hydro_w,)).squeeze()
62
63
 
63
64
  # calculate mole fractions
64
- xfrac = thermo_y.compute("Y->X", (hydro_w[snapy.index.icy :, ...],)).squeeze()
65
+ xfrac = thermo_y.compute("Y->X", (hydro_w[kICY:, ...],)).squeeze()
65
66
 
66
67
  # calculate heat capacity
67
68
  conc = thermo_x.compute("TPX->V", (temp, pres * 1.0e5, xfrac))
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "paddle"
7
- version = "1.1.14"
7
+ version = "1.1.16"
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