pion-reader 2.0.0__tar.gz → 2.0.1__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.
- pion_reader-2.0.1/PKG-INFO +119 -0
- pion_reader-2.0.1/README.md +96 -0
- {pion_reader-2.0.0 → pion_reader-2.0.1}/pyproject.toml +1 -1
- {pion_reader-2.0.0 → pion_reader-2.0.1}/src/pion_reader/SiloHeader_data.py +1 -1
- pion_reader-2.0.1/src/pion_reader.egg-info/PKG-INFO +119 -0
- {pion_reader-2.0.0 → pion_reader-2.0.1}/tests/test_read_layouts.py +10 -0
- pion_reader-2.0.0/PKG-INFO +0 -67
- pion_reader-2.0.0/README.md +0 -44
- pion_reader-2.0.0/src/pion_reader.egg-info/PKG-INFO +0 -67
- {pion_reader-2.0.0 → pion_reader-2.0.1}/LICENSE.md +0 -0
- {pion_reader-2.0.0 → pion_reader-2.0.1}/setup.cfg +0 -0
- {pion_reader-2.0.0 → pion_reader-2.0.1}/src/pion_reader/Plotting_Classes.py +0 -0
- {pion_reader-2.0.0 → pion_reader-2.0.1}/src/pion_reader/ReadData.py +0 -0
- {pion_reader-2.0.0 → pion_reader-2.0.1}/src/pion_reader/__init__.py +0 -0
- {pion_reader-2.0.0 → pion_reader-2.0.1}/src/pion_reader/derived_fields_yt.py +0 -0
- {pion_reader-2.0.0 → pion_reader-2.0.1}/src/pion_reader/example_plots_yt.py +0 -0
- {pion_reader-2.0.0 → pion_reader-2.0.1}/src/pion_reader/microphysics.py +0 -0
- {pion_reader-2.0.0 → pion_reader-2.0.1}/src/pion_reader/pion2yt.py +0 -0
- {pion_reader-2.0.0 → pion_reader-2.0.1}/src/pion_reader/util.py +0 -0
- {pion_reader-2.0.0 → pion_reader-2.0.1}/src/pion_reader.egg-info/SOURCES.txt +0 -0
- {pion_reader-2.0.0 → pion_reader-2.0.1}/src/pion_reader.egg-info/dependency_links.txt +0 -0
- {pion_reader-2.0.0 → pion_reader-2.0.1}/src/pion_reader.egg-info/requires.txt +0 -0
- {pion_reader-2.0.0 → pion_reader-2.0.1}/src/pion_reader.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pion-reader
|
|
3
|
+
Version: 2.0.1
|
|
4
|
+
Summary: Read and plot the Silo snapshot files of the PION (radiation-)MHD code
|
|
5
|
+
Author: Sam Green, Jonathan Mackey, Arun Mathew
|
|
6
|
+
License-Expression: BSD-3-Clause
|
|
7
|
+
Project-URL: Homepage, https://github.com/jmackey-astro/PyPion-dev
|
|
8
|
+
Project-URL: Documentation, https://pion-docs-dev.readthedocs.io/en/latest/python.html
|
|
9
|
+
Project-URL: Issues, https://github.com/jmackey-astro/PyPion-dev/issues
|
|
10
|
+
Keywords: pion,pypion,silo,visualisation,computational fluid dynamics
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Topic :: Scientific/Engineering :: Astronomy
|
|
14
|
+
Requires-Python: >=3.9
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
License-File: LICENSE.md
|
|
17
|
+
Requires-Dist: numpy
|
|
18
|
+
Requires-Dist: astropy
|
|
19
|
+
Requires-Dist: matplotlib
|
|
20
|
+
Provides-Extra: yt
|
|
21
|
+
Requires-Dist: yt>=4.4.0; extra == "yt"
|
|
22
|
+
Dynamic: license-file
|
|
23
|
+
|
|
24
|
+
# pion-reader: Python library for PION
|
|
25
|
+
|
|
26
|
+
Reads and plots the Silo snapshot files written by
|
|
27
|
+
[PION](https://gitlab.git.nrw/jmackey1/pion-dev), on uniform and nested
|
|
28
|
+
grids in 1D, 2D and 3D: both the current layout (all levels of a snapshot
|
|
29
|
+
in one set of files, PION 3.0.0-dev.2 and later) and the older one (one file
|
|
30
|
+
per level). It continues PyPion (Sam Green et al.; the `pypion` package on
|
|
31
|
+
PyPI), with the module renamed from `pypion` to `pion_reader`.
|
|
32
|
+
|
|
33
|
+
The source is in `src/pion_reader`, example plotting scripts are in
|
|
34
|
+
`examples/`, and `tests/` reads PION snapshots of both layouts
|
|
35
|
+
(`pytest tests`).
|
|
36
|
+
|
|
37
|
+
```python
|
|
38
|
+
from pion_reader.ReadData import ReadData
|
|
39
|
+
data = ReadData("MyRun_0000.00000100.silo") # all levels of a snapshot
|
|
40
|
+
rho = data.get_2Darray("Density") # one array per level
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Scripts written for PyPion only need `pypion` replaced by `pion_reader` in
|
|
44
|
+
their imports.
|
|
45
|
+
|
|
46
|
+
# Installation
|
|
47
|
+
|
|
48
|
+
pion-reader is installed from PyPI with `pip`, but it also needs the python
|
|
49
|
+
module of the [Silo library](https://github.com/LLNL/Silo), which is not on
|
|
50
|
+
PyPI and has to be compiled. The script `src/silo/install_silo.sh` in this
|
|
51
|
+
repository does this.
|
|
52
|
+
|
|
53
|
+
Recent Linux distributions and Homebrew do not allow `pip install` into the
|
|
54
|
+
system python, so install pion-reader in a virtual environment.
|
|
55
|
+
|
|
56
|
+
## 1. Install the build tools
|
|
57
|
+
|
|
58
|
+
* Debian/Ubuntu:
|
|
59
|
+
```bash
|
|
60
|
+
sudo apt install build-essential cmake wget python3-dev python3-venv
|
|
61
|
+
```
|
|
62
|
+
* MacOS: install the Apple command-line tools (`xcode-select --install`) and
|
|
63
|
+
[Homebrew](https://brew.sh/), then
|
|
64
|
+
```bash
|
|
65
|
+
brew install python3 cmake wget
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## 2. Create a virtual environment and install pion-reader
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
python3 -m venv ~/pion-venv
|
|
72
|
+
source ~/pion-venv/bin/activate
|
|
73
|
+
python -m pip install --upgrade pip
|
|
74
|
+
python -m pip install pion-reader # or "pion-reader[yt]" with yt
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## 3. Compile and install Silo with its python module
|
|
78
|
+
|
|
79
|
+
With the virtual environment still active, run the install script in an empty
|
|
80
|
+
directory (it downloads and compiles Silo there; you can delete the directory
|
|
81
|
+
afterwards):
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
git clone https://github.com/jmackey-astro/PyPion-dev.git ~/PyPion-dev
|
|
85
|
+
mkdir -p ~/.cache/silo-build && cd ~/.cache/silo-build
|
|
86
|
+
bash ~/PyPion-dev/src/silo/install_silo.sh
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
This installs Silo in `~/.local/silo` (set `SILO_PREFIX` to change this), and
|
|
90
|
+
adds a file `silo_local.pth` to the virtual environment so that `import Silo`
|
|
91
|
+
works. The python module only works with the python version it was compiled
|
|
92
|
+
for, so if you upgrade python or create a new virtual environment, run the
|
|
93
|
+
script again.
|
|
94
|
+
|
|
95
|
+
On Apple Silicon Macs, make sure that Homebrew, python and the terminal are
|
|
96
|
+
all native (`arm64`), not running under Rosetta.
|
|
97
|
+
|
|
98
|
+
## 4. Check the installation
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
python -c "import Silo; from pion_reader.ReadData import ReadData; print(Silo.__file__)"
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Activate the virtual environment (`source ~/pion-venv/bin/activate`) every
|
|
105
|
+
time you open a new terminal to use pion-reader.
|
|
106
|
+
|
|
107
|
+
# Documentation
|
|
108
|
+
|
|
109
|
+
Installation and usage are also described in the PION documentation:
|
|
110
|
+
https://pion-docs-dev.readthedocs.io/en/latest/python.html
|
|
111
|
+
|
|
112
|
+
Developers: see `doc/dev.md`; format the code with `tools/format.sh`
|
|
113
|
+
(yapf) before committing.
|
|
114
|
+
|
|
115
|
+
# Developers/Maintainers
|
|
116
|
+
|
|
117
|
+
* Samuel Green
|
|
118
|
+
* Jonathan Mackey
|
|
119
|
+
* Arun Mathew
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# pion-reader: Python library for PION
|
|
2
|
+
|
|
3
|
+
Reads and plots the Silo snapshot files written by
|
|
4
|
+
[PION](https://gitlab.git.nrw/jmackey1/pion-dev), on uniform and nested
|
|
5
|
+
grids in 1D, 2D and 3D: both the current layout (all levels of a snapshot
|
|
6
|
+
in one set of files, PION 3.0.0-dev.2 and later) and the older one (one file
|
|
7
|
+
per level). It continues PyPion (Sam Green et al.; the `pypion` package on
|
|
8
|
+
PyPI), with the module renamed from `pypion` to `pion_reader`.
|
|
9
|
+
|
|
10
|
+
The source is in `src/pion_reader`, example plotting scripts are in
|
|
11
|
+
`examples/`, and `tests/` reads PION snapshots of both layouts
|
|
12
|
+
(`pytest tests`).
|
|
13
|
+
|
|
14
|
+
```python
|
|
15
|
+
from pion_reader.ReadData import ReadData
|
|
16
|
+
data = ReadData("MyRun_0000.00000100.silo") # all levels of a snapshot
|
|
17
|
+
rho = data.get_2Darray("Density") # one array per level
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Scripts written for PyPion only need `pypion` replaced by `pion_reader` in
|
|
21
|
+
their imports.
|
|
22
|
+
|
|
23
|
+
# Installation
|
|
24
|
+
|
|
25
|
+
pion-reader is installed from PyPI with `pip`, but it also needs the python
|
|
26
|
+
module of the [Silo library](https://github.com/LLNL/Silo), which is not on
|
|
27
|
+
PyPI and has to be compiled. The script `src/silo/install_silo.sh` in this
|
|
28
|
+
repository does this.
|
|
29
|
+
|
|
30
|
+
Recent Linux distributions and Homebrew do not allow `pip install` into the
|
|
31
|
+
system python, so install pion-reader in a virtual environment.
|
|
32
|
+
|
|
33
|
+
## 1. Install the build tools
|
|
34
|
+
|
|
35
|
+
* Debian/Ubuntu:
|
|
36
|
+
```bash
|
|
37
|
+
sudo apt install build-essential cmake wget python3-dev python3-venv
|
|
38
|
+
```
|
|
39
|
+
* MacOS: install the Apple command-line tools (`xcode-select --install`) and
|
|
40
|
+
[Homebrew](https://brew.sh/), then
|
|
41
|
+
```bash
|
|
42
|
+
brew install python3 cmake wget
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## 2. Create a virtual environment and install pion-reader
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
python3 -m venv ~/pion-venv
|
|
49
|
+
source ~/pion-venv/bin/activate
|
|
50
|
+
python -m pip install --upgrade pip
|
|
51
|
+
python -m pip install pion-reader # or "pion-reader[yt]" with yt
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## 3. Compile and install Silo with its python module
|
|
55
|
+
|
|
56
|
+
With the virtual environment still active, run the install script in an empty
|
|
57
|
+
directory (it downloads and compiles Silo there; you can delete the directory
|
|
58
|
+
afterwards):
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
git clone https://github.com/jmackey-astro/PyPion-dev.git ~/PyPion-dev
|
|
62
|
+
mkdir -p ~/.cache/silo-build && cd ~/.cache/silo-build
|
|
63
|
+
bash ~/PyPion-dev/src/silo/install_silo.sh
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
This installs Silo in `~/.local/silo` (set `SILO_PREFIX` to change this), and
|
|
67
|
+
adds a file `silo_local.pth` to the virtual environment so that `import Silo`
|
|
68
|
+
works. The python module only works with the python version it was compiled
|
|
69
|
+
for, so if you upgrade python or create a new virtual environment, run the
|
|
70
|
+
script again.
|
|
71
|
+
|
|
72
|
+
On Apple Silicon Macs, make sure that Homebrew, python and the terminal are
|
|
73
|
+
all native (`arm64`), not running under Rosetta.
|
|
74
|
+
|
|
75
|
+
## 4. Check the installation
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
python -c "import Silo; from pion_reader.ReadData import ReadData; print(Silo.__file__)"
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Activate the virtual environment (`source ~/pion-venv/bin/activate`) every
|
|
82
|
+
time you open a new terminal to use pion-reader.
|
|
83
|
+
|
|
84
|
+
# Documentation
|
|
85
|
+
|
|
86
|
+
Installation and usage are also described in the PION documentation:
|
|
87
|
+
https://pion-docs-dev.readthedocs.io/en/latest/python.html
|
|
88
|
+
|
|
89
|
+
Developers: see `doc/dev.md`; format the code with `tools/format.sh`
|
|
90
|
+
(yapf) before committing.
|
|
91
|
+
|
|
92
|
+
# Developers/Maintainers
|
|
93
|
+
|
|
94
|
+
* Samuel Green
|
|
95
|
+
* Jonathan Mackey
|
|
96
|
+
* Arun Mathew
|
|
@@ -231,7 +231,7 @@ class OpenData:
|
|
|
231
231
|
newfile = n[:loc]
|
|
232
232
|
newpar = n[loc + 1:]
|
|
233
233
|
# append full path to new filename
|
|
234
|
-
newfile = ospath.dirname(self.OpenFile)
|
|
234
|
+
newfile = ospath.join(ospath.dirname(self.OpenFile), newfile)
|
|
235
235
|
# only close old / open new file if they are not the same file
|
|
236
236
|
if (newfile != nowfile):
|
|
237
237
|
self.db.Close()
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pion-reader
|
|
3
|
+
Version: 2.0.1
|
|
4
|
+
Summary: Read and plot the Silo snapshot files of the PION (radiation-)MHD code
|
|
5
|
+
Author: Sam Green, Jonathan Mackey, Arun Mathew
|
|
6
|
+
License-Expression: BSD-3-Clause
|
|
7
|
+
Project-URL: Homepage, https://github.com/jmackey-astro/PyPion-dev
|
|
8
|
+
Project-URL: Documentation, https://pion-docs-dev.readthedocs.io/en/latest/python.html
|
|
9
|
+
Project-URL: Issues, https://github.com/jmackey-astro/PyPion-dev/issues
|
|
10
|
+
Keywords: pion,pypion,silo,visualisation,computational fluid dynamics
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Topic :: Scientific/Engineering :: Astronomy
|
|
14
|
+
Requires-Python: >=3.9
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
License-File: LICENSE.md
|
|
17
|
+
Requires-Dist: numpy
|
|
18
|
+
Requires-Dist: astropy
|
|
19
|
+
Requires-Dist: matplotlib
|
|
20
|
+
Provides-Extra: yt
|
|
21
|
+
Requires-Dist: yt>=4.4.0; extra == "yt"
|
|
22
|
+
Dynamic: license-file
|
|
23
|
+
|
|
24
|
+
# pion-reader: Python library for PION
|
|
25
|
+
|
|
26
|
+
Reads and plots the Silo snapshot files written by
|
|
27
|
+
[PION](https://gitlab.git.nrw/jmackey1/pion-dev), on uniform and nested
|
|
28
|
+
grids in 1D, 2D and 3D: both the current layout (all levels of a snapshot
|
|
29
|
+
in one set of files, PION 3.0.0-dev.2 and later) and the older one (one file
|
|
30
|
+
per level). It continues PyPion (Sam Green et al.; the `pypion` package on
|
|
31
|
+
PyPI), with the module renamed from `pypion` to `pion_reader`.
|
|
32
|
+
|
|
33
|
+
The source is in `src/pion_reader`, example plotting scripts are in
|
|
34
|
+
`examples/`, and `tests/` reads PION snapshots of both layouts
|
|
35
|
+
(`pytest tests`).
|
|
36
|
+
|
|
37
|
+
```python
|
|
38
|
+
from pion_reader.ReadData import ReadData
|
|
39
|
+
data = ReadData("MyRun_0000.00000100.silo") # all levels of a snapshot
|
|
40
|
+
rho = data.get_2Darray("Density") # one array per level
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Scripts written for PyPion only need `pypion` replaced by `pion_reader` in
|
|
44
|
+
their imports.
|
|
45
|
+
|
|
46
|
+
# Installation
|
|
47
|
+
|
|
48
|
+
pion-reader is installed from PyPI with `pip`, but it also needs the python
|
|
49
|
+
module of the [Silo library](https://github.com/LLNL/Silo), which is not on
|
|
50
|
+
PyPI and has to be compiled. The script `src/silo/install_silo.sh` in this
|
|
51
|
+
repository does this.
|
|
52
|
+
|
|
53
|
+
Recent Linux distributions and Homebrew do not allow `pip install` into the
|
|
54
|
+
system python, so install pion-reader in a virtual environment.
|
|
55
|
+
|
|
56
|
+
## 1. Install the build tools
|
|
57
|
+
|
|
58
|
+
* Debian/Ubuntu:
|
|
59
|
+
```bash
|
|
60
|
+
sudo apt install build-essential cmake wget python3-dev python3-venv
|
|
61
|
+
```
|
|
62
|
+
* MacOS: install the Apple command-line tools (`xcode-select --install`) and
|
|
63
|
+
[Homebrew](https://brew.sh/), then
|
|
64
|
+
```bash
|
|
65
|
+
brew install python3 cmake wget
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## 2. Create a virtual environment and install pion-reader
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
python3 -m venv ~/pion-venv
|
|
72
|
+
source ~/pion-venv/bin/activate
|
|
73
|
+
python -m pip install --upgrade pip
|
|
74
|
+
python -m pip install pion-reader # or "pion-reader[yt]" with yt
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## 3. Compile and install Silo with its python module
|
|
78
|
+
|
|
79
|
+
With the virtual environment still active, run the install script in an empty
|
|
80
|
+
directory (it downloads and compiles Silo there; you can delete the directory
|
|
81
|
+
afterwards):
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
git clone https://github.com/jmackey-astro/PyPion-dev.git ~/PyPion-dev
|
|
85
|
+
mkdir -p ~/.cache/silo-build && cd ~/.cache/silo-build
|
|
86
|
+
bash ~/PyPion-dev/src/silo/install_silo.sh
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
This installs Silo in `~/.local/silo` (set `SILO_PREFIX` to change this), and
|
|
90
|
+
adds a file `silo_local.pth` to the virtual environment so that `import Silo`
|
|
91
|
+
works. The python module only works with the python version it was compiled
|
|
92
|
+
for, so if you upgrade python or create a new virtual environment, run the
|
|
93
|
+
script again.
|
|
94
|
+
|
|
95
|
+
On Apple Silicon Macs, make sure that Homebrew, python and the terminal are
|
|
96
|
+
all native (`arm64`), not running under Rosetta.
|
|
97
|
+
|
|
98
|
+
## 4. Check the installation
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
python -c "import Silo; from pion_reader.ReadData import ReadData; print(Silo.__file__)"
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Activate the virtual environment (`source ~/pion-venv/bin/activate`) every
|
|
105
|
+
time you open a new terminal to use pion-reader.
|
|
106
|
+
|
|
107
|
+
# Documentation
|
|
108
|
+
|
|
109
|
+
Installation and usage are also described in the PION documentation:
|
|
110
|
+
https://pion-docs-dev.readthedocs.io/en/latest/python.html
|
|
111
|
+
|
|
112
|
+
Developers: see `doc/dev.md`; format the code with `tools/format.sh`
|
|
113
|
+
(yapf) before committing.
|
|
114
|
+
|
|
115
|
+
# Developers/Maintainers
|
|
116
|
+
|
|
117
|
+
* Samuel Green
|
|
118
|
+
* Jonathan Mackey
|
|
119
|
+
* Arun Mathew
|
|
@@ -94,3 +94,13 @@ def test_level_extents_all_levels():
|
|
|
94
94
|
assert np.array_equal(np.array(xmin), np.array(ro.xmin_all()))
|
|
95
95
|
assert np.array_equal(np.array(xmax), np.array(ro.xmax_all()))
|
|
96
96
|
ro.close()
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
def test_relative_name_multifile(monkeypatch):
|
|
100
|
+
# a snapshot split into 2 files, opened by a name without a directory:
|
|
101
|
+
# the domains in the _0001 file must be found next to the _0000 file
|
|
102
|
+
ref, _, _ = read(new_file(2, "new4"), 2, "Density")
|
|
103
|
+
monkeypatch.chdir(os.path.join(DATA, "2d", "new4"))
|
|
104
|
+
rel, _, _ = read("snap_0000.00000000.silo", 2, "Density")
|
|
105
|
+
for a, b in zip(ref["data"], rel["data"]):
|
|
106
|
+
assert np.array_equal(a, b)
|
pion_reader-2.0.0/PKG-INFO
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: pion-reader
|
|
3
|
-
Version: 2.0.0
|
|
4
|
-
Summary: Read and plot the Silo snapshot files of the PION (radiation-)MHD code
|
|
5
|
-
Author: Sam Green, Jonathan Mackey, Arun Mathew
|
|
6
|
-
License-Expression: BSD-3-Clause
|
|
7
|
-
Project-URL: Homepage, https://github.com/jmackey-astro/PyPion-dev
|
|
8
|
-
Project-URL: Documentation, https://pion-docs-dev.readthedocs.io/en/latest/python.html
|
|
9
|
-
Project-URL: Issues, https://github.com/jmackey-astro/PyPion-dev/issues
|
|
10
|
-
Keywords: pion,pypion,silo,visualisation,computational fluid dynamics
|
|
11
|
-
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: Operating System :: OS Independent
|
|
13
|
-
Classifier: Topic :: Scientific/Engineering :: Astronomy
|
|
14
|
-
Requires-Python: >=3.9
|
|
15
|
-
Description-Content-Type: text/markdown
|
|
16
|
-
License-File: LICENSE.md
|
|
17
|
-
Requires-Dist: numpy
|
|
18
|
-
Requires-Dist: astropy
|
|
19
|
-
Requires-Dist: matplotlib
|
|
20
|
-
Provides-Extra: yt
|
|
21
|
-
Requires-Dist: yt>=4.4.0; extra == "yt"
|
|
22
|
-
Dynamic: license-file
|
|
23
|
-
|
|
24
|
-
# pion-reader: Python library for PION
|
|
25
|
-
|
|
26
|
-
Reads and plots the Silo snapshot files written by
|
|
27
|
-
[PION](https://gitlab.git.nrw/jmackey1/pion-dev), on uniform and nested
|
|
28
|
-
grids in 1D, 2D and 3D: both the current layout (all levels of a snapshot
|
|
29
|
-
in one set of files, PION 3.0.0-dev.2 and later) and the older one (one file
|
|
30
|
-
per level). It continues PyPion (Sam Green et al.; the `pypion` package on
|
|
31
|
-
PyPI), with the module renamed from `pypion` to `pion_reader`.
|
|
32
|
-
|
|
33
|
-
The source is in `src/pion_reader`, example plotting scripts are in
|
|
34
|
-
`examples/`, and `tests/` reads PION snapshots of both layouts
|
|
35
|
-
(`pytest tests`).
|
|
36
|
-
|
|
37
|
-
# Installation
|
|
38
|
-
|
|
39
|
-
```
|
|
40
|
-
python3 -m pip install pion-reader # or "pion-reader[yt]" with yt
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
```python
|
|
44
|
-
from pion_reader.ReadData import ReadData
|
|
45
|
-
data = ReadData("MyRun_0000.00000100.silo") # all levels of a snapshot
|
|
46
|
-
rho = data.get_2Darray("Density") # one array per level
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
Scripts written for PyPion only need `pypion` replaced by `pion_reader` in
|
|
50
|
-
their imports.
|
|
51
|
-
|
|
52
|
-
The Silo Python module is installed separately: see the
|
|
53
|
-
[PION documentation](https://pion-docs-dev.readthedocs.io/en/latest/python.html)
|
|
54
|
-
(or the script in `src/silo/` of this repository).
|
|
55
|
-
|
|
56
|
-
# Documentation
|
|
57
|
-
|
|
58
|
-
Usage: https://pion-docs-dev.readthedocs.io/en/latest/python.html
|
|
59
|
-
|
|
60
|
-
Developers: see `doc/dev.md`; format the code with `tools/format.sh`
|
|
61
|
-
(yapf) before committing.
|
|
62
|
-
|
|
63
|
-
# Developers/Maintainers
|
|
64
|
-
|
|
65
|
-
* Samuel Green
|
|
66
|
-
* Jonathan Mackey
|
|
67
|
-
* Arun Mathew
|
pion_reader-2.0.0/README.md
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# pion-reader: Python library for PION
|
|
2
|
-
|
|
3
|
-
Reads and plots the Silo snapshot files written by
|
|
4
|
-
[PION](https://gitlab.git.nrw/jmackey1/pion-dev), on uniform and nested
|
|
5
|
-
grids in 1D, 2D and 3D: both the current layout (all levels of a snapshot
|
|
6
|
-
in one set of files, PION 3.0.0-dev.2 and later) and the older one (one file
|
|
7
|
-
per level). It continues PyPion (Sam Green et al.; the `pypion` package on
|
|
8
|
-
PyPI), with the module renamed from `pypion` to `pion_reader`.
|
|
9
|
-
|
|
10
|
-
The source is in `src/pion_reader`, example plotting scripts are in
|
|
11
|
-
`examples/`, and `tests/` reads PION snapshots of both layouts
|
|
12
|
-
(`pytest tests`).
|
|
13
|
-
|
|
14
|
-
# Installation
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
python3 -m pip install pion-reader # or "pion-reader[yt]" with yt
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
```python
|
|
21
|
-
from pion_reader.ReadData import ReadData
|
|
22
|
-
data = ReadData("MyRun_0000.00000100.silo") # all levels of a snapshot
|
|
23
|
-
rho = data.get_2Darray("Density") # one array per level
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
Scripts written for PyPion only need `pypion` replaced by `pion_reader` in
|
|
27
|
-
their imports.
|
|
28
|
-
|
|
29
|
-
The Silo Python module is installed separately: see the
|
|
30
|
-
[PION documentation](https://pion-docs-dev.readthedocs.io/en/latest/python.html)
|
|
31
|
-
(or the script in `src/silo/` of this repository).
|
|
32
|
-
|
|
33
|
-
# Documentation
|
|
34
|
-
|
|
35
|
-
Usage: https://pion-docs-dev.readthedocs.io/en/latest/python.html
|
|
36
|
-
|
|
37
|
-
Developers: see `doc/dev.md`; format the code with `tools/format.sh`
|
|
38
|
-
(yapf) before committing.
|
|
39
|
-
|
|
40
|
-
# Developers/Maintainers
|
|
41
|
-
|
|
42
|
-
* Samuel Green
|
|
43
|
-
* Jonathan Mackey
|
|
44
|
-
* Arun Mathew
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: pion-reader
|
|
3
|
-
Version: 2.0.0
|
|
4
|
-
Summary: Read and plot the Silo snapshot files of the PION (radiation-)MHD code
|
|
5
|
-
Author: Sam Green, Jonathan Mackey, Arun Mathew
|
|
6
|
-
License-Expression: BSD-3-Clause
|
|
7
|
-
Project-URL: Homepage, https://github.com/jmackey-astro/PyPion-dev
|
|
8
|
-
Project-URL: Documentation, https://pion-docs-dev.readthedocs.io/en/latest/python.html
|
|
9
|
-
Project-URL: Issues, https://github.com/jmackey-astro/PyPion-dev/issues
|
|
10
|
-
Keywords: pion,pypion,silo,visualisation,computational fluid dynamics
|
|
11
|
-
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: Operating System :: OS Independent
|
|
13
|
-
Classifier: Topic :: Scientific/Engineering :: Astronomy
|
|
14
|
-
Requires-Python: >=3.9
|
|
15
|
-
Description-Content-Type: text/markdown
|
|
16
|
-
License-File: LICENSE.md
|
|
17
|
-
Requires-Dist: numpy
|
|
18
|
-
Requires-Dist: astropy
|
|
19
|
-
Requires-Dist: matplotlib
|
|
20
|
-
Provides-Extra: yt
|
|
21
|
-
Requires-Dist: yt>=4.4.0; extra == "yt"
|
|
22
|
-
Dynamic: license-file
|
|
23
|
-
|
|
24
|
-
# pion-reader: Python library for PION
|
|
25
|
-
|
|
26
|
-
Reads and plots the Silo snapshot files written by
|
|
27
|
-
[PION](https://gitlab.git.nrw/jmackey1/pion-dev), on uniform and nested
|
|
28
|
-
grids in 1D, 2D and 3D: both the current layout (all levels of a snapshot
|
|
29
|
-
in one set of files, PION 3.0.0-dev.2 and later) and the older one (one file
|
|
30
|
-
per level). It continues PyPion (Sam Green et al.; the `pypion` package on
|
|
31
|
-
PyPI), with the module renamed from `pypion` to `pion_reader`.
|
|
32
|
-
|
|
33
|
-
The source is in `src/pion_reader`, example plotting scripts are in
|
|
34
|
-
`examples/`, and `tests/` reads PION snapshots of both layouts
|
|
35
|
-
(`pytest tests`).
|
|
36
|
-
|
|
37
|
-
# Installation
|
|
38
|
-
|
|
39
|
-
```
|
|
40
|
-
python3 -m pip install pion-reader # or "pion-reader[yt]" with yt
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
```python
|
|
44
|
-
from pion_reader.ReadData import ReadData
|
|
45
|
-
data = ReadData("MyRun_0000.00000100.silo") # all levels of a snapshot
|
|
46
|
-
rho = data.get_2Darray("Density") # one array per level
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
Scripts written for PyPion only need `pypion` replaced by `pion_reader` in
|
|
50
|
-
their imports.
|
|
51
|
-
|
|
52
|
-
The Silo Python module is installed separately: see the
|
|
53
|
-
[PION documentation](https://pion-docs-dev.readthedocs.io/en/latest/python.html)
|
|
54
|
-
(or the script in `src/silo/` of this repository).
|
|
55
|
-
|
|
56
|
-
# Documentation
|
|
57
|
-
|
|
58
|
-
Usage: https://pion-docs-dev.readthedocs.io/en/latest/python.html
|
|
59
|
-
|
|
60
|
-
Developers: see `doc/dev.md`; format the code with `tools/format.sh`
|
|
61
|
-
(yapf) before committing.
|
|
62
|
-
|
|
63
|
-
# Developers/Maintainers
|
|
64
|
-
|
|
65
|
-
* Samuel Green
|
|
66
|
-
* Jonathan Mackey
|
|
67
|
-
* Arun Mathew
|
|
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
|