seqeyes-python 0.3.17__tar.gz → 0.4.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.
- {seqeyes_python-0.3.17 → seqeyes_python-0.4.1}/PKG-INFO +3 -1
- {seqeyes_python-0.3.17 → seqeyes_python-0.4.1}/examples/demo.ipynb +1 -1
- {seqeyes_python-0.3.17 → seqeyes_python-0.4.1}/pyproject.toml +3 -2
- {seqeyes_python-0.3.17 → seqeyes_python-0.4.1}/src/seqeyes/__init__.py +1 -1
- {seqeyes_python-0.3.17 → seqeyes_python-0.4.1}/src/seqeyes/_plot.py +1 -1
- {seqeyes_python-0.3.17 → seqeyes_python-0.4.1}/src/seqeyes/_renderer.py +6 -5
- {seqeyes_python-0.3.17 → seqeyes_python-0.4.1}/src/seqeyes/resources/pulseq-bundle.js +425 -161
- {seqeyes_python-0.3.17 → seqeyes_python-0.4.1}/src/seqeyes/resources/viewer.html +3 -3
- {seqeyes_python-0.3.17 → seqeyes_python-0.4.1}/src/seqeyes/resources/webview-bundle.js +4218 -188
- seqeyes_python-0.4.1/tests/test_ismrmrd_fixture.py +266 -0
- {seqeyes_python-0.3.17 → seqeyes_python-0.4.1}/tests/test_plot.py +3 -3
- {seqeyes_python-0.3.17 → seqeyes_python-0.4.1}/.gitignore +0 -0
- {seqeyes_python-0.3.17 → seqeyes_python-0.4.1}/README.md +0 -0
- {seqeyes_python-0.3.17 → seqeyes_python-0.4.1}/examples/demo.py +0 -0
- {seqeyes_python-0.3.17 → seqeyes_python-0.4.1}/src/seqeyes/resources/seqeyes-labels.js +0 -0
- {seqeyes_python-0.3.17 → seqeyes_python-0.4.1}/tests/conftest.py +0 -0
- {seqeyes_python-0.3.17 → seqeyes_python-0.4.1}/tests/debug_full.html +0 -0
- {seqeyes_python-0.3.17 → seqeyes_python-0.4.1}/tests/debug_minimal.html +0 -0
- {seqeyes_python-0.3.17 → seqeyes_python-0.4.1}/tests/debug_viewer.html +0 -0
- {seqeyes_python-0.3.17 → seqeyes_python-0.4.1}/tests/debug_viewer.py +0 -0
- {seqeyes_python-0.3.17 → seqeyes_python-0.4.1}/tests/integration_test.py +0 -0
- {seqeyes_python-0.3.17 → seqeyes_python-0.4.1}/tests/test_renderer.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: seqeyes-python
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.1
|
|
4
4
|
Summary: Interactive Pulseq MRI sequence viewer for Jupyter — lightweight, beautiful, replaces seq.plot() in pypulseq.
|
|
5
5
|
Project-URL: Homepage, https://github.com/bughht/seqeyes_plugin
|
|
6
6
|
Project-URL: Repository, https://github.com/bughht/seqeyes_plugin
|
|
@@ -25,6 +25,8 @@ Requires-Dist: pywebview>=5; extra == 'desktop'
|
|
|
25
25
|
Provides-Extra: pypulseq
|
|
26
26
|
Requires-Dist: pypulseq>=1.4; extra == 'pypulseq'
|
|
27
27
|
Provides-Extra: test
|
|
28
|
+
Requires-Dist: h5py>=3; extra == 'test'
|
|
29
|
+
Requires-Dist: ismrmrd>=1.14.2; extra == 'test'
|
|
28
30
|
Requires-Dist: pytest>=7; extra == 'test'
|
|
29
31
|
Description-Content-Type: text/markdown
|
|
30
32
|
|
|
@@ -311,7 +311,7 @@
|
|
|
311
311
|
"| `show_blocks` | `False` | Show block‑boundary lines |\n",
|
|
312
312
|
"| `time_range` | `(0, inf)` | Zoom to `(start_sec, end_sec)` |\n",
|
|
313
313
|
"| `time_disp` | `\"s\"` | Time unit: `\"s\"`, `\"ms\"`, `\"us\"` |\n",
|
|
314
|
-
"| `grad_disp` | `\"
|
|
314
|
+
"| `grad_disp` | `\"mT/m\"` | Gradient unit: `\"mT/m\"`, `\"Hz/m\"`, `\"G/cm\"` |\n",
|
|
315
315
|
"| `theme` | `\"system\"` | `\"light\"`, `\"dark\"`, `\"dracula\"`, `\"nord\"`, ... |"
|
|
316
316
|
]
|
|
317
317
|
},
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "seqeyes-python"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.4.1"
|
|
8
8
|
description = "Interactive Pulseq MRI sequence viewer for Jupyter — lightweight, beautiful, replaces seq.plot() in pypulseq."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = {text = "MIT"}
|
|
@@ -33,7 +33,8 @@ dependencies = [
|
|
|
33
33
|
[project.optional-dependencies]
|
|
34
34
|
pypulseq = ["pypulseq>=1.4"]
|
|
35
35
|
desktop = ["pywebview>=5"]
|
|
36
|
-
|
|
36
|
+
# h5py and ismrmrd read the simulator's ISMRMRD export fixtures (tests/test_ismrmrd_fixture.py).
|
|
37
|
+
test = ["pytest>=7", "h5py>=3", "ismrmrd>=1.14.2"]
|
|
37
38
|
|
|
38
39
|
[project.urls]
|
|
39
40
|
Homepage = "https://github.com/bughht/seqeyes_plugin"
|
|
@@ -120,7 +120,7 @@ def _ensure_patched() -> None:
|
|
|
120
120
|
show_blocks: bool = False,
|
|
121
121
|
time_range: Any = (0, float("inf")),
|
|
122
122
|
time_disp: str = "s",
|
|
123
|
-
grad_disp: str = "
|
|
123
|
+
grad_disp: str = "mT/m",
|
|
124
124
|
**kwargs: Any,
|
|
125
125
|
) -> None:
|
|
126
126
|
# Merge globals — per‑call args take precedence
|
|
@@ -76,7 +76,7 @@ def _read_viewer_template() -> str:
|
|
|
76
76
|
|
|
77
77
|
def _normalize_grad_disp(unit: str) -> str:
|
|
78
78
|
"""Return a viewer-supported gradient unit."""
|
|
79
|
-
return unit if unit in _VALID_GRAD_UNITS else "
|
|
79
|
+
return unit if unit in _VALID_GRAD_UNITS else "mT/m"
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
def _build_html(
|
|
@@ -88,7 +88,7 @@ def _build_html(
|
|
|
88
88
|
show_blocks: bool = False,
|
|
89
89
|
time_range: tuple = (0, float("inf")),
|
|
90
90
|
time_disp: str = "s",
|
|
91
|
-
grad_disp: str = "
|
|
91
|
+
grad_disp: str = "mT/m",
|
|
92
92
|
) -> str:
|
|
93
93
|
"""Assemble the complete viewer HTML.
|
|
94
94
|
|
|
@@ -109,7 +109,8 @@ def _build_html(
|
|
|
109
109
|
time_disp : str
|
|
110
110
|
Initial time display unit (``"s"``, ``"ms"``, ``"us"``).
|
|
111
111
|
grad_disp : str
|
|
112
|
-
Initial gradient display unit (``"
|
|
112
|
+
Initial gradient display unit (``"mT/m"``, the default, ``"Hz/m"``
|
|
113
|
+
or ``"G/cm"``).
|
|
113
114
|
"""
|
|
114
115
|
template = _read_viewer_template()
|
|
115
116
|
grad_disp = _normalize_grad_disp(grad_disp)
|
|
@@ -189,7 +190,7 @@ class SeqEyesViewer:
|
|
|
189
190
|
time_disp : str
|
|
190
191
|
Time axis unit — ``"s"``, ``"ms"``, or ``"us"``.
|
|
191
192
|
grad_disp : str
|
|
192
|
-
Gradient axis unit — ``"
|
|
193
|
+
Gradient axis unit — ``"mT/m"`` (default), ``"Hz/m"``, or ``"G/cm"``.
|
|
193
194
|
theme : str or None
|
|
194
195
|
Colour theme.
|
|
195
196
|
width : str
|
|
@@ -206,7 +207,7 @@ class SeqEyesViewer:
|
|
|
206
207
|
show_blocks: bool = False,
|
|
207
208
|
time_range: tuple = (0, float("inf")),
|
|
208
209
|
time_disp: str = "s",
|
|
209
|
-
grad_disp: str = "
|
|
210
|
+
grad_disp: str = "mT/m",
|
|
210
211
|
theme: Optional[str] = None,
|
|
211
212
|
width: str = "100%",
|
|
212
213
|
height: str = "550px",
|