vamrv 0.1.0__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.
vamrv-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Olivier Chabot
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
vamrv-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,82 @@
1
+ Metadata-Version: 2.4
2
+ Name: vamrv
3
+ Version: 0.1.0
4
+ Summary: Terminal viewer for AMReX plotfiles: braille/block rendering, vim-like keys, works over SSH
5
+ Author: Olivier Chabot
6
+ License-Expression: MIT
7
+ Keywords: amrex,plotfile,visualization,terminal,cfd,pelelmex
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Operating System :: POSIX
10
+ Classifier: Environment :: Console :: Curses
11
+ Classifier: Intended Audience :: Science/Research
12
+ Classifier: Topic :: Scientific/Engineering :: Visualization
13
+ Requires-Python: >=3.8
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ Requires-Dist: numpy>=1.20
17
+ Dynamic: license-file
18
+
19
+ # vamrv
20
+
21
+ View AMReX plotfiles in the terminal. Works over SSH on any terminal with 256 colours,
22
+ needs only NumPy, and opens large multi-level plotfiles in a fraction of a second by
23
+ reading only the boxes on screen.
24
+
25
+ ```bash
26
+ pip install vamrv
27
+ vamrv plt01000
28
+ ```
29
+
30
+ - 2D and 3D AMReX plotfiles (PeleLMeX, PeleC, any `HyperCLaw-V1.1` plotfile), and 2D `.npz` arrays
31
+ - Slices along x, y or z; steps through slices, fields and time steps (sibling `plt*` directories)
32
+ - Picks the coarsest AMR level that resolves the screen; zooming in pulls in finer levels
33
+ - Background buffering of the next slices, time steps and fields, so stepping is instant
34
+ - Braille (2×4 dots per character) or quadrant-block rendering, linear or log scale,
35
+ colour range that follows the view, movable colorbar, value probe
36
+ - Vim-like keys and `:` commands with Tab completion
37
+
38
+ ## Usage
39
+
40
+ ```bash
41
+ vamrv plt01000 # 3D: starts on a z-normal slice through the centre
42
+ vamrv plt01000 --field temp --normal y # pick field and slice normal
43
+ vamrv plt01000 --log --clim 1e-6 1e-2 # log scale, fixed colour limits
44
+ vamrv slice.npz # every 2D array in the file is a field
45
+ vamrv plt01000 --once > frame.txt # print one frame and exit (view with: less -R frame.txt)
46
+ ```
47
+
48
+ Press `?` in the viewer for the full list.
49
+
50
+ | Keys | Command | Action |
51
+ |---|---|---|
52
+ | `h j k l`, `+ -`, `0` | | pan, zoom, reset view |
53
+ | `x y z` | `:normal x` | slice normal |
54
+ | `[ ]`, `{ }` | `:pos V` | step one cell / jump 10 % of the domain |
55
+ | `< >` | `:plt NAME` | previous / next plotfile |
56
+ | `n N`, `/` | `:field NAME` | next / previous field, search fields |
57
+ | `r` | `:mode braille\|quad` | render mode |
58
+ | `s` | `:scale lin\|log` | colour scale |
59
+ | `m` | `:autoscale on\|off` | colour range follows the view |
60
+ | | `:min V`, `:max V`, `:clim A B\|auto` | fix colour limits |
61
+ | `c`, `C` | `:cmap NAME`, `:cbar POS` | colormap, colorbar position |
62
+ | `p` | `:probe on\|off\|X Y` | value probe (then `h j k l` move it by one character) |
63
+ | `f`, `a A`, `b B` | `:flip`, `:aspect V`, `:bg V` | flip, character aspect, background cutoff |
64
+ | | `:level N\|auto` | cap the AMR level |
65
+ | `q` | `:q` | quit |
66
+
67
+ Counts work on most keys (`5]`, `10>`). `Esc` cancels a command.
68
+
69
+ ## Tips
70
+
71
+ - **Aspect ratio**: if circles look stretched, adjust `a`/`A` until they are round,
72
+ then pass that value with `--font-ratio` (character width / height, default 0.5).
73
+ - **Memory**: buffers default to about 2.3 GB at most (`--cache-mb`, `--box-mb`, `--slab-mb`).
74
+ Lower them on shared login nodes.
75
+ - **Parallel file systems**: reads are latency-bound on Lustre; `--io-threads` (default 16)
76
+ and `--bg-threads` (default 8) set how many run at once.
77
+ - **Diagnostics**: `--trace view.log` records the timing of every read, frame and key.
78
+
79
+ ## Requirements
80
+
81
+ Python 3.8+, NumPy, a POSIX system (Linux, macOS) and a terminal with 256 colours and
82
+ UTF-8 (braille and block characters).
vamrv-0.1.0/README.md ADDED
@@ -0,0 +1,64 @@
1
+ # vamrv
2
+
3
+ View AMReX plotfiles in the terminal. Works over SSH on any terminal with 256 colours,
4
+ needs only NumPy, and opens large multi-level plotfiles in a fraction of a second by
5
+ reading only the boxes on screen.
6
+
7
+ ```bash
8
+ pip install vamrv
9
+ vamrv plt01000
10
+ ```
11
+
12
+ - 2D and 3D AMReX plotfiles (PeleLMeX, PeleC, any `HyperCLaw-V1.1` plotfile), and 2D `.npz` arrays
13
+ - Slices along x, y or z; steps through slices, fields and time steps (sibling `plt*` directories)
14
+ - Picks the coarsest AMR level that resolves the screen; zooming in pulls in finer levels
15
+ - Background buffering of the next slices, time steps and fields, so stepping is instant
16
+ - Braille (2×4 dots per character) or quadrant-block rendering, linear or log scale,
17
+ colour range that follows the view, movable colorbar, value probe
18
+ - Vim-like keys and `:` commands with Tab completion
19
+
20
+ ## Usage
21
+
22
+ ```bash
23
+ vamrv plt01000 # 3D: starts on a z-normal slice through the centre
24
+ vamrv plt01000 --field temp --normal y # pick field and slice normal
25
+ vamrv plt01000 --log --clim 1e-6 1e-2 # log scale, fixed colour limits
26
+ vamrv slice.npz # every 2D array in the file is a field
27
+ vamrv plt01000 --once > frame.txt # print one frame and exit (view with: less -R frame.txt)
28
+ ```
29
+
30
+ Press `?` in the viewer for the full list.
31
+
32
+ | Keys | Command | Action |
33
+ |---|---|---|
34
+ | `h j k l`, `+ -`, `0` | | pan, zoom, reset view |
35
+ | `x y z` | `:normal x` | slice normal |
36
+ | `[ ]`, `{ }` | `:pos V` | step one cell / jump 10 % of the domain |
37
+ | `< >` | `:plt NAME` | previous / next plotfile |
38
+ | `n N`, `/` | `:field NAME` | next / previous field, search fields |
39
+ | `r` | `:mode braille\|quad` | render mode |
40
+ | `s` | `:scale lin\|log` | colour scale |
41
+ | `m` | `:autoscale on\|off` | colour range follows the view |
42
+ | | `:min V`, `:max V`, `:clim A B\|auto` | fix colour limits |
43
+ | `c`, `C` | `:cmap NAME`, `:cbar POS` | colormap, colorbar position |
44
+ | `p` | `:probe on\|off\|X Y` | value probe (then `h j k l` move it by one character) |
45
+ | `f`, `a A`, `b B` | `:flip`, `:aspect V`, `:bg V` | flip, character aspect, background cutoff |
46
+ | | `:level N\|auto` | cap the AMR level |
47
+ | `q` | `:q` | quit |
48
+
49
+ Counts work on most keys (`5]`, `10>`). `Esc` cancels a command.
50
+
51
+ ## Tips
52
+
53
+ - **Aspect ratio**: if circles look stretched, adjust `a`/`A` until they are round,
54
+ then pass that value with `--font-ratio` (character width / height, default 0.5).
55
+ - **Memory**: buffers default to about 2.3 GB at most (`--cache-mb`, `--box-mb`, `--slab-mb`).
56
+ Lower them on shared login nodes.
57
+ - **Parallel file systems**: reads are latency-bound on Lustre; `--io-threads` (default 16)
58
+ and `--bg-threads` (default 8) set how many run at once.
59
+ - **Diagnostics**: `--trace view.log` records the timing of every read, frame and key.
60
+
61
+ ## Requirements
62
+
63
+ Python 3.8+, NumPy, a POSIX system (Linux, macOS) and a terminal with 256 colours and
64
+ UTF-8 (braille and block characters).
@@ -0,0 +1,28 @@
1
+ [build-system]
2
+ requires = ["setuptools>=77"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "vamrv"
7
+ version = "0.1.0"
8
+ description = "Terminal viewer for AMReX plotfiles: braille/block rendering, vim-like keys, works over SSH"
9
+ readme = "README.md"
10
+ license = "MIT"
11
+ license-files = ["LICENSE"]
12
+ authors = [{name = "Olivier Chabot"}]
13
+ requires-python = ">=3.8"
14
+ dependencies = ["numpy>=1.20"]
15
+ keywords = ["amrex", "plotfile", "visualization", "terminal", "cfd", "pelelmex"]
16
+ classifiers = [
17
+ "Programming Language :: Python :: 3",
18
+ "Operating System :: POSIX",
19
+ "Environment :: Console :: Curses",
20
+ "Intended Audience :: Science/Research",
21
+ "Topic :: Scientific/Engineering :: Visualization",
22
+ ]
23
+
24
+ [project.scripts]
25
+ vamrv = "vamrv.cli:main"
26
+
27
+ [tool.setuptools.packages.find]
28
+ where = ["src"]
vamrv-0.1.0/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,2 @@
1
+ """vamrv — view AMReX plotfiles in the terminal."""
2
+ __version__ = '0.1.0'
@@ -0,0 +1,3 @@
1
+ from .cli import main
2
+
3
+ main()