seqeyes-python 0.3.17__py3-none-any.whl → 0.4.1__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.
seqeyes/__init__.py CHANGED
@@ -29,4 +29,4 @@ from seqeyes._plot import set, reset
29
29
  from seqeyes._renderer import SeqEyesViewer
30
30
 
31
31
  __all__ = ["set", "reset", "SeqEyesViewer"]
32
- __version__ = "0.3.17"
32
+ __version__ = "0.4.1"
seqeyes/_plot.py CHANGED
@@ -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 = "Hz/m",
123
+ grad_disp: str = "mT/m",
124
124
  **kwargs: Any,
125
125
  ) -> None:
126
126
  # Merge globals — per‑call args take precedence
seqeyes/_renderer.py CHANGED
@@ -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 "Hz/m"
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 = "Hz/m",
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 (``"Hz/m"``, ``"mT/m"``, ``"G/cm"``).
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 — ``"Hz/m"``, ``"mT/m"``, or ``"G/cm"``.
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 = "Hz/m",
210
+ grad_disp: str = "mT/m",
210
211
  theme: Optional[str] = None,
211
212
  width: str = "100%",
212
213
  height: str = "550px",