seqeyes-python 0.3.2__tar.gz → 0.3.3__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.
Files changed (20) hide show
  1. {seqeyes_python-0.3.2 → seqeyes_python-0.3.3}/PKG-INFO +1 -1
  2. {seqeyes_python-0.3.2 → seqeyes_python-0.3.3}/pyproject.toml +1 -1
  3. {seqeyes_python-0.3.2 → seqeyes_python-0.3.3}/src/seqeyes/__init__.py +1 -1
  4. {seqeyes_python-0.3.2 → seqeyes_python-0.3.3}/src/seqeyes/resources/pulseq-bundle.js +1 -1
  5. {seqeyes_python-0.3.2 → seqeyes_python-0.3.3}/src/seqeyes/resources/webview-bundle.js +10 -1
  6. {seqeyes_python-0.3.2 → seqeyes_python-0.3.3}/.gitignore +0 -0
  7. {seqeyes_python-0.3.2 → seqeyes_python-0.3.3}/README.md +0 -0
  8. {seqeyes_python-0.3.2 → seqeyes_python-0.3.3}/examples/demo.ipynb +0 -0
  9. {seqeyes_python-0.3.2 → seqeyes_python-0.3.3}/examples/demo.py +0 -0
  10. {seqeyes_python-0.3.2 → seqeyes_python-0.3.3}/src/seqeyes/_plot.py +0 -0
  11. {seqeyes_python-0.3.2 → seqeyes_python-0.3.3}/src/seqeyes/_renderer.py +0 -0
  12. {seqeyes_python-0.3.2 → seqeyes_python-0.3.3}/src/seqeyes/resources/viewer.html +0 -0
  13. {seqeyes_python-0.3.2 → seqeyes_python-0.3.3}/tests/conftest.py +0 -0
  14. {seqeyes_python-0.3.2 → seqeyes_python-0.3.3}/tests/debug_full.html +0 -0
  15. {seqeyes_python-0.3.2 → seqeyes_python-0.3.3}/tests/debug_minimal.html +0 -0
  16. {seqeyes_python-0.3.2 → seqeyes_python-0.3.3}/tests/debug_viewer.html +0 -0
  17. {seqeyes_python-0.3.2 → seqeyes_python-0.3.3}/tests/debug_viewer.py +0 -0
  18. {seqeyes_python-0.3.2 → seqeyes_python-0.3.3}/tests/integration_test.py +0 -0
  19. {seqeyes_python-0.3.2 → seqeyes_python-0.3.3}/tests/test_plot.py +0 -0
  20. {seqeyes_python-0.3.2 → seqeyes_python-0.3.3}/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.2
3
+ Version: 0.3.3
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
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "seqeyes-python"
7
- version = "0.3.2"
7
+ version = "0.3.3"
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"}
@@ -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.2"
32
+ __version__ = "0.3.3"
@@ -86,7 +86,7 @@ var Pulseq = (() => {
86
86
  });
87
87
 
88
88
  // package.json
89
- var version = "0.3.2";
89
+ var version = "0.3.3";
90
90
 
91
91
  // src/pulseq/decompressor.ts
92
92
  function decompressShape(compressed, numSamples) {
@@ -4823,7 +4823,16 @@ var SeqEyesPanel = (function () {
4823
4823
  if (e.key === 'Escape' && isFinite(markerTimeSec)) { setMarkerTime(NaN); syncControls(); }
4824
4824
  });
4825
4825
  document.addEventListener('visibilitychange', function () {
4826
- if (document.hidden) stopPlayback();
4826
+ if (document.hidden) {
4827
+ // Web Audio can keep rendering in a background tab, but animation frames
4828
+ // cannot. Preserve the audition and suspend only its visual updates.
4829
+ stopPlayheadLoop();
4830
+ return;
4831
+ }
4832
+ if (panelMode !== 'spectrogram') return;
4833
+ if (SeqEyesAudio.isPlaying()) startPlayheadLoop();
4834
+ syncTransport();
4835
+ render();
4827
4836
  });
4828
4837
  window.addEventListener('pagehide', function () { SeqEyesAudio.dispose(); });
4829
4838
  window.addEventListener('resize', function () { if (panelMode === 'spectrogram') resize(); });
File without changes