paddle 1.1.11__py3-none-any.whl → 1.1.15__py3-none-any.whl

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/__init__.py CHANGED
@@ -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.11"
7
+ __version__ = "1.1.15"
@@ -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.
@@ -1,4 +1,4 @@
1
- paddle/__init__.py,sha256=lsjXyx46HR-2ub7DkfpYJrUQQKVSFi6QWqr_kJPFd7g,282
1
+ paddle/__init__.py,sha256=LKTsvbB-zkmi6wCGlc99PijCtLjNyDeP6B0vMOXRJh4,282
2
2
  paddle/crm.py,sha256=HwOLAojR5LBcptqjAC9APEJiWpn8GhxPiAmvvIZ4mTM,1986
3
3
  paddle/evolve_kinetics.py,sha256=OWt1-SiLTzaWUCIchwRnBHCjbtcgJIIxrlQ5Lk4iN8c,1541
4
4
  paddle/find_init_params.py,sha256=dyRmo-LTwVohbPhSH5LV45jL_XeRmNEcuKPvafBklto,2516
@@ -6,8 +6,8 @@ paddle/nc2pt.py,sha256=LXR0fnUTaOA_uaDsLU4YqdAVFyycB6SvRq12xWhHhLA,1136
6
6
  paddle/pt2nc.py,sha256=lLviBm6a2O05RvuPQc8DxV5pGr_VEhlSkrKPV1lQ3yU,3913
7
7
  paddle/setup_profile.py,sha256=oJpqPnlq2q1rn_l2flwgbdWwbxbhxx4QOYl4ezWmP-o,8803
8
8
  paddle/write_profile.py,sha256=HeBtGaFixGv8DnmJWPiQs-30RsdplSObhMA6ky6eVrg,3908
9
- paddle-1.1.11.dist-info/METADATA,sha256=EnC-UYAntB1Kl_TfwDjbAQA9Fz_vuoCMoXwZtXsJzIM,2687
10
- paddle-1.1.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
11
- paddle-1.1.11.dist-info/entry_points.txt,sha256=pDR96GW6ylBZrbFd-tRGthW8qTuYaSLjrEt1LFIEYto,48
12
- paddle-1.1.11.dist-info/licenses/LICENSE,sha256=e6NthgKABUnLRqjuETcBGgsOuA-aJANpNoeXMe9RBso,1071
13
- paddle-1.1.11.dist-info/RECORD,,
9
+ paddle-1.1.15.dist-info/METADATA,sha256=eTNgZHYYqNvDlNY_tJfx1wkmMcuu7YgyZ56iv2v0UzU,6036
10
+ paddle-1.1.15.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
11
+ paddle-1.1.15.dist-info/entry_points.txt,sha256=pDR96GW6ylBZrbFd-tRGthW8qTuYaSLjrEt1LFIEYto,48
12
+ paddle-1.1.15.dist-info/licenses/LICENSE,sha256=e6NthgKABUnLRqjuETcBGgsOuA-aJANpNoeXMe9RBso,1071
13
+ paddle-1.1.15.dist-info/RECORD,,
@@ -1,110 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: paddle
3
- Version: 1.1.11
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
- ### Install paddle package
97
-
98
- ### Install pre-commit hook
99
- ```bash
100
- pip install pre-commit
101
- ```
102
-
103
- ### Install pre-commit hook
104
- ```bash
105
- pre-commit install
106
- ```
107
-
108
- ## Troubleshooting
109
- 1. If you do not have docker compose
110
- Remove your current docker installation, it could be docker or docker.io