openms-insight 0.1.5__py3-none-any.whl → 0.1.6__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.
@@ -472,6 +472,13 @@ def render_component(
472
472
  if vue_hash is not None:
473
473
  st.session_state[_VUE_ECHOED_HASH_KEY][hash_tracking_key] = vue_hash
474
474
 
475
+ # Check if Vue is requesting data due to cache miss (e.g., after page navigation)
476
+ # Vue's cache was empty when it received dataChanged=false, so it needs data resent
477
+ request_data = result.get("_requestData", False)
478
+ if request_data:
479
+ # Clear our stored hash to force data resend on next render
480
+ st.session_state[_VUE_ECHOED_HASH_KEY].pop(hash_tracking_key, None)
481
+
475
482
  # Capture annotations from Vue (e.g., from SequenceView)
476
483
  # Use hash-based change detection for robustness
477
484
  annotations = result.get("_annotations")
@@ -498,10 +505,10 @@ def render_component(
498
505
  annotations_changed = True
499
506
  st.session_state[ann_hash_key] = None
500
507
 
501
- # Update state and rerun if state changed OR annotations changed
508
+ # Update state and rerun if state changed OR annotations changed OR data requested
502
509
  # Hash comparison will naturally detect changes on the next render
503
510
  state_changed = state_manager.update_from_vue(result)
504
- if state_changed or annotations_changed:
511
+ if state_changed or annotations_changed or request_data:
505
512
  st.rerun()
506
513
 
507
514
  return result
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: openms-insight
3
- Version: 0.1.5
3
+ Version: 0.1.6
4
4
  Summary: Interactive visualization components for mass spectrometry data in Streamlit
5
5
  Project-URL: Homepage, https://github.com/t0mdavid-m/OpenMS-Insight
6
6
  Project-URL: Documentation, https://github.com/t0mdavid-m/OpenMS-Insight#readme
@@ -1,4 +1,4 @@
1
- openms_insight/__init__.py,sha256=gOX7oIlGQ7TJmd5BfyL5SCQhV6IaPPsOGXOaWOCnCN8,1111
1
+ openms_insight/__init__.py,sha256=fqk7DwB4PY-BOi2-uT9FCARBYen_3SPmnSnScVKBnQY,1111
2
2
  openms_insight/components/__init__.py,sha256=Lcg-D0FILta-YVgMJBlWMKLKC5G5kXOqdy9hBOENABw,233
3
3
  openms_insight/components/heatmap.py,sha256=psrdW4gNzZR1jAIox9YS9EHaZaTRrDHFR0t2_0APU9Y,47214
4
4
  openms_insight/components/lineplot.py,sha256=I-JPvDzCr3Nu8Boc1V4D8QQ1bHgTqvM6CbeoIe7zJ-s,30896
@@ -16,15 +16,15 @@ openms_insight/preprocessing/compression.py,sha256=T4YbX9PUlfTfPit_kpuLZn8hYpqLY
16
16
  openms_insight/preprocessing/filtering.py,sha256=fkmaIXfR5hfjyWfaMYqaeybMHaZjvUZYaKCqvxPOWMQ,14152
17
17
  openms_insight/preprocessing/scatter.py,sha256=2ifCNTUKHEW9UVpv4z9c5GaLnz5zw9o1119IenzAe9s,4703
18
18
  openms_insight/rendering/__init__.py,sha256=ApHvKeh87yY4GTIEai-tCeIXpNbwOXWlmcmIwMMRZYc,198
19
- openms_insight/rendering/bridge.py,sha256=Y5ckR0Gb7s88bJJpVnM_fEZzN2MppN_PfDnsceAr3Mc,20276
19
+ openms_insight/rendering/bridge.py,sha256=Z8njsnVI-TCE6Beep7b2him-Hy8o2eYVDD-RxiHWDXo,20727
20
20
  openms_insight/js-component/dist/index.html,sha256=LSJ3B_YmGUrCCdZ1UaZO2p6Wqsih6nTH62Z_0uZxpD8,430
21
21
  openms_insight/js-component/dist/assets/index.css,sha256=wFvo7FbG132LL7uw0slXfrL_oSQ8u2RKL1DW9hD9-kk,884264
22
- openms_insight/js-component/dist/assets/index.js,sha256=EGp5VXlZWHp0jIsOg5jJeYaCz_eDN2R0KDT_btyc6ww,6074760
22
+ openms_insight/js-component/dist/assets/index.js,sha256=lgH9C14vHdrRN48hjcHhjCRqOIJlHq3zduFveW7jSnE,6075088
23
23
  openms_insight/js-component/dist/assets/materialdesignicons-webfont.eot,sha256=CxgxBNL8XyYZbnc8d72vLgVQn9QlnS0V7O3Kebh-hPk,1307880
24
24
  openms_insight/js-component/dist/assets/materialdesignicons-webfont.ttf,sha256=YeirpaTpgf4iz3yOi82-oAR251xiw38Bv37jM2HWhCg,1307660
25
25
  openms_insight/js-component/dist/assets/materialdesignicons-webfont.woff,sha256=pZKKDVwvYk5G-Y2bFcL2AEU3f3xZTdeKF1kTLqO0Y-s,587984
26
26
  openms_insight/js-component/dist/assets/materialdesignicons-webfont.woff2,sha256=Zi_vqPL4qVwYWI0hd0eJwQfGTnccvmWmmvRikcQxGvw,403216
27
- openms_insight-0.1.5.dist-info/METADATA,sha256=ccUljk6Ixse_tMFpebzWg0Vj_qo4ZGa328flIrBzMKc,16670
28
- openms_insight-0.1.5.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
29
- openms_insight-0.1.5.dist-info/licenses/LICENSE,sha256=INFF4rOMmpah7Oi14hLqu7NTOsx56KRRNChAAUcfh2E,1823
30
- openms_insight-0.1.5.dist-info/RECORD,,
27
+ openms_insight-0.1.6.dist-info/METADATA,sha256=S--OtU9cCzBuY9UaIaDNuMivpOMPQaXwSZEAXqFpQu8,16670
28
+ openms_insight-0.1.6.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
29
+ openms_insight-0.1.6.dist-info/licenses/LICENSE,sha256=INFF4rOMmpah7Oi14hLqu7NTOsx56KRRNChAAUcfh2E,1823
30
+ openms_insight-0.1.6.dist-info/RECORD,,