gondola 0.11.39__tar.gz → 0.11.41__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 (113) hide show
  1. {gondola-0.11.39 → gondola-0.11.41}/Cargo.lock +1 -1
  2. {gondola-0.11.39 → gondola-0.11.41}/Cargo.toml +1 -1
  3. {gondola-0.11.39 → gondola-0.11.41}/PKG-INFO +1 -1
  4. {gondola-0.11.39 → gondola-0.11.41}/python/gondola/tof/analysis.py +30 -2
  5. {gondola-0.11.39 → gondola-0.11.41}/src/tof/analysis.rs +3 -0
  6. {gondola-0.11.39 → gondola-0.11.41}/.gitignore +0 -0
  7. {gondola-0.11.39 → gondola-0.11.41}/README.md +0 -0
  8. {gondola-0.11.39 → gondola-0.11.41}/alert-manifest-test.toml +0 -0
  9. {gondola-0.11.39 → gondola-0.11.41}/benches/bench.rs +0 -0
  10. {gondola-0.11.39 → gondola-0.11.41}/build.sh +0 -0
  11. {gondola-0.11.39 → gondola-0.11.41}/diesel.toml +0 -0
  12. {gondola-0.11.39 → gondola-0.11.41}/gondola-0.11.24-cp311-abi3-manylinux_2_34_x86_64.whl +0 -0
  13. {gondola-0.11.39 → gondola-0.11.41}/liftof-config-decompressed.toml +0 -0
  14. {gondola-0.11.39 → gondola-0.11.41}/liftof-config-default.toml +0 -0
  15. {gondola-0.11.39 → gondola-0.11.41}/liftof-config-test-changed.toml +0 -0
  16. {gondola-0.11.39 → gondola-0.11.41}/liftof-config.diff +0 -0
  17. {gondola-0.11.39 → gondola-0.11.41}/liftof-config.toml +0 -0
  18. {gondola-0.11.39 → gondola-0.11.41}/publish_to_bluejay.sh +0 -0
  19. {gondola-0.11.39 → gondola-0.11.41}/pyproject.toml +0 -0
  20. {gondola-0.11.39 → gondola-0.11.41}/python/gondola/__init__.py +0 -0
  21. {gondola-0.11.39 → gondola-0.11.41}/python/gondola/calibration.py +0 -0
  22. {gondola-0.11.39 → gondola-0.11.41}/python/gondola/db.py +0 -0
  23. {gondola-0.11.39 → gondola-0.11.41}/python/gondola/events.py +0 -0
  24. {gondola-0.11.39 → gondola-0.11.41}/python/gondola/gaps_flight.db +0 -0
  25. {gondola-0.11.39 → gondola-0.11.41}/python/gondola/io/__init__.py +0 -0
  26. {gondola-0.11.39 → gondola-0.11.41}/python/gondola/io/streamers.py +0 -0
  27. {gondola-0.11.39 → gondola-0.11.41}/python/gondola/reconstruction/__init__.py +0 -0
  28. {gondola-0.11.39 → gondola-0.11.41}/python/gondola/tof/__init__.py +0 -0
  29. {gondola-0.11.39 → gondola-0.11.41}/python/gondola/tracker/__init__.py +0 -0
  30. {gondola-0.11.39 → gondola-0.11.41}/python/gondola/tracker/analysis.py +0 -0
  31. {gondola-0.11.39 → gondola-0.11.41}/python/gondola/visual/__init__.py +0 -0
  32. {gondola-0.11.39 → gondola-0.11.41}/python/gondola/visual/tof.py +0 -0
  33. {gondola-0.11.39 → gondola-0.11.41}/python/gondola/visual/tracker.py +0 -0
  34. {gondola-0.11.39 → gondola-0.11.41}/src/calibration/tof.rs +0 -0
  35. {gondola-0.11.39 → gondola-0.11.41}/src/calibration/tracker.rs +0 -0
  36. {gondola-0.11.39 → gondola-0.11.41}/src/calibration.rs +0 -0
  37. {gondola-0.11.39 → gondola-0.11.41}/src/constants.rs +0 -0
  38. {gondola-0.11.39 → gondola-0.11.41}/src/database/schema.rs +0 -0
  39. {gondola-0.11.39 → gondola-0.11.41}/src/database.rs +0 -0
  40. {gondola-0.11.39 → gondola-0.11.41}/src/errors.rs +0 -0
  41. {gondola-0.11.39 → gondola-0.11.41}/src/events/rb_event.rs +0 -0
  42. {gondola-0.11.39 → gondola-0.11.41}/src/events/rb_event_header.rs +0 -0
  43. {gondola-0.11.39 → gondola-0.11.41}/src/events/rb_waveform.rs +0 -0
  44. {gondola-0.11.39 → gondola-0.11.41}/src/events/telemetry_event.rs +0 -0
  45. {gondola-0.11.39 → gondola-0.11.41}/src/events/tof_event.rs +0 -0
  46. {gondola-0.11.39 → gondola-0.11.41}/src/events/tof_hit.rs +0 -0
  47. {gondola-0.11.39 → gondola-0.11.41}/src/events/tracker_hit.rs +0 -0
  48. {gondola-0.11.39 → gondola-0.11.41}/src/events.rs +0 -0
  49. {gondola-0.11.39 → gondola-0.11.41}/src/io/caraspace/frame.rs +0 -0
  50. {gondola-0.11.39 → gondola-0.11.41}/src/io/caraspace/reader.rs +0 -0
  51. {gondola-0.11.39 → gondola-0.11.41}/src/io/caraspace/socket_reader.rs +0 -0
  52. {gondola-0.11.39 → gondola-0.11.41}/src/io/caraspace/writer.rs +0 -0
  53. {gondola-0.11.39 → gondola-0.11.41}/src/io/caraspace.rs +0 -0
  54. {gondola-0.11.39 → gondola-0.11.41}/src/io/data_source.rs +0 -0
  55. {gondola-0.11.39 → gondola-0.11.41}/src/io/ipbus.rs +0 -0
  56. {gondola-0.11.39 → gondola-0.11.41}/src/io/parsers.rs +0 -0
  57. {gondola-0.11.39 → gondola-0.11.41}/src/io/root_reader.rs +0 -0
  58. {gondola-0.11.39 → gondola-0.11.41}/src/io/serialization.rs +0 -0
  59. {gondola-0.11.39 → gondola-0.11.41}/src/io/streamers.rs +0 -0
  60. {gondola-0.11.39 → gondola-0.11.41}/src/io/telemetry_reader.rs +0 -0
  61. {gondola-0.11.39 → gondola-0.11.41}/src/io/tof_reader.rs +0 -0
  62. {gondola-0.11.39 → gondola-0.11.41}/src/io/tof_writer.rs +0 -0
  63. {gondola-0.11.39 → gondola-0.11.41}/src/io.rs +0 -0
  64. {gondola-0.11.39 → gondola-0.11.41}/src/lib.rs +0 -0
  65. {gondola-0.11.39 → gondola-0.11.41}/src/monitoring/cpu_moni_data.rs +0 -0
  66. {gondola-0.11.39 → gondola-0.11.41}/src/monitoring/heartbeats/data_sink_hb.rs +0 -0
  67. {gondola-0.11.39 → gondola-0.11.41}/src/monitoring/heartbeats/event_builder_hb.rs +0 -0
  68. {gondola-0.11.39 → gondola-0.11.41}/src/monitoring/heartbeats/master_trigger_hb.rs +0 -0
  69. {gondola-0.11.39 → gondola-0.11.41}/src/monitoring/heartbeats.rs +0 -0
  70. {gondola-0.11.39 → gondola-0.11.41}/src/monitoring/ltb_moni_data.rs +0 -0
  71. {gondola-0.11.39 → gondola-0.11.41}/src/monitoring/mtb_moni_data.rs +0 -0
  72. {gondola-0.11.39 → gondola-0.11.41}/src/monitoring/pa_moni_data.rs +0 -0
  73. {gondola-0.11.39 → gondola-0.11.41}/src/monitoring/pb_moni_data.rs +0 -0
  74. {gondola-0.11.39 → gondola-0.11.41}/src/monitoring/rb_moni_data.rs +0 -0
  75. {gondola-0.11.39 → gondola-0.11.41}/src/monitoring/run_statistics.rs +0 -0
  76. {gondola-0.11.39 → gondola-0.11.41}/src/monitoring.rs +0 -0
  77. {gondola-0.11.39 → gondola-0.11.41}/src/packets/bfsw_ack_packet.rs +0 -0
  78. {gondola-0.11.39 → gondola-0.11.41}/src/packets/gps_packet.rs +0 -0
  79. {gondola-0.11.39 → gondola-0.11.41}/src/packets/magnetometer.rs +0 -0
  80. {gondola-0.11.39 → gondola-0.11.41}/src/packets/pdu_packet.rs +0 -0
  81. {gondola-0.11.39 → gondola-0.11.41}/src/packets/telemetry_packet.rs +0 -0
  82. {gondola-0.11.39 → gondola-0.11.41}/src/packets/telemetry_packet_header.rs +0 -0
  83. {gondola-0.11.39 → gondola-0.11.41}/src/packets/telemetry_packet_type.rs +0 -0
  84. {gondola-0.11.39 → gondola-0.11.41}/src/packets/tof_packet.rs +0 -0
  85. {gondola-0.11.39 → gondola-0.11.41}/src/packets/tof_packet_type.rs +0 -0
  86. {gondola-0.11.39 → gondola-0.11.41}/src/packets/tracker.rs +0 -0
  87. {gondola-0.11.39 → gondola-0.11.41}/src/packets/tracker_header.rs +0 -0
  88. {gondola-0.11.39 → gondola-0.11.41}/src/packets.rs +0 -0
  89. {gondola-0.11.39 → gondola-0.11.41}/src/prelude.rs +0 -0
  90. {gondola-0.11.39 → gondola-0.11.41}/src/python.rs +0 -0
  91. {gondola-0.11.39 → gondola-0.11.41}/src/random.rs +0 -0
  92. {gondola-0.11.39 → gondola-0.11.41}/src/stats.rs +0 -0
  93. {gondola-0.11.39 → gondola-0.11.41}/src/tof/alerts.rs +0 -0
  94. {gondola-0.11.39 → gondola-0.11.41}/src/tof/algorithms.rs +0 -0
  95. {gondola-0.11.39 → gondola-0.11.41}/src/tof/analysis_engine.rs +0 -0
  96. {gondola-0.11.39 → gondola-0.11.41}/src/tof/commands.rs +0 -0
  97. {gondola-0.11.39 → gondola-0.11.41}/src/tof/config.rs +0 -0
  98. {gondola-0.11.39 → gondola-0.11.41}/src/tof/cuts.rs +0 -0
  99. {gondola-0.11.39 → gondola-0.11.41}/src/tof/detector_status.rs +0 -0
  100. {gondola-0.11.39 → gondola-0.11.41}/src/tof/master_trigger/control.rs +0 -0
  101. {gondola-0.11.39 → gondola-0.11.41}/src/tof/master_trigger/registers.rs +0 -0
  102. {gondola-0.11.39 → gondola-0.11.41}/src/tof/master_trigger.rs +0 -0
  103. {gondola-0.11.39 → gondola-0.11.41}/src/tof/panic.rs +0 -0
  104. {gondola-0.11.39 → gondola-0.11.41}/src/tof/rb_paddle_id.rs +0 -0
  105. {gondola-0.11.39 → gondola-0.11.41}/src/tof/settings.rs +0 -0
  106. {gondola-0.11.39 → gondola-0.11.41}/src/tof/signal_handler.rs +0 -0
  107. {gondola-0.11.39 → gondola-0.11.41}/src/tof/thread_control.rs +0 -0
  108. {gondola-0.11.39 → gondola-0.11.41}/src/tof/tof_response.rs +0 -0
  109. {gondola-0.11.39 → gondola-0.11.41}/src/tof.rs +0 -0
  110. {gondola-0.11.39 → gondola-0.11.41}/src/tracker/strips.rs +0 -0
  111. {gondola-0.11.39 → gondola-0.11.41}/src/tracker.rs +0 -0
  112. {gondola-0.11.39 → gondola-0.11.41}/src/version.rs +0 -0
  113. {gondola-0.11.39 → gondola-0.11.41}/tests/test.rs +0 -0
@@ -1361,7 +1361,7 @@ checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2"
1361
1361
 
1362
1362
  [[package]]
1363
1363
  name = "gondola-core"
1364
- version = "0.11.39"
1364
+ version = "0.11.41"
1365
1365
  dependencies = [
1366
1366
  "cfg-if 1.0.0",
1367
1367
  "chrono",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "gondola-core"
3
- version = "0.11.39"
3
+ version = "0.11.41"
4
4
  edition = "2024"
5
5
  readme = "README.md"
6
6
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gondola
3
- Version: 0.11.39
3
+ Version: 0.11.41
4
4
  Requires-Dist: tqdm>=4.0
5
5
  Requires-Dist: numpy>=2.3
6
6
  Requires-Dist: matplotlib>=3.10
@@ -129,6 +129,9 @@ class TofAnalysis:
129
129
  plots['edep_umb'] = d.histogram.hist1d(self.EDEP_BINS)
130
130
  plots['edep_cbe'] = d.histogram.hist1d(self.EDEP_BINS)
131
131
  plots['edep_cor'] = d.histogram.hist1d(self.EDEP_BINS)
132
+ plots['umb_vs_cor_edep'] = d.histogram.hist2d((self.EDEP_BINS, self.EDEP_BINS)),
133
+ plots['cbe_vs_cor_edep'] = d.histogram.hist2d((self.EDEP_BINS, self.EDEP_BINS)),
134
+ plots['cbe_vs_umb_edep'] = d.histogram.hist2d((self.EDEP_BINS, self.EDEP_BINS)),
132
135
  cache = dict()
133
136
  for k in plots.keys():
134
137
  cache[k] = []
@@ -142,6 +145,9 @@ class TofAnalysis:
142
145
  'nhit_umb' : d.histogram.hist1d(self.NHIT_BINS),
143
146
  'nhit_cor' : d.histogram.hist1d(self.NHIT_BINS),
144
147
  'i_vs_o_nhit': d.histogram.hist2d((self.NHIT_BINS, self.NHIT_BINS)),
148
+ 'umb_vs_cor_nhit': d.histogram.hist2d((self.NHIT_BINS, self.NHIT_BINS)),
149
+ 'cbe_vs_umb_nhit': d.histogram.hist2d((self.NHIT_BINS, self.NHIT_BINS)),
150
+ 'cbe_vs_cor_nhit': d.histogram.hist2d((self.NHIT_BINS, self.NHIT_BINS)),
145
151
  'thit' : d.histogram.hist1d(self.NHIT_BINS),
146
152
  'rblink' : d.histogram.hist1d(self.NHIT_BINS),
147
153
  'miss_hit' : d.histogram.hist1d(self.PID_BINS),
@@ -451,6 +457,9 @@ class TofAnalysis:
451
457
  self.nhit_plots['nhit_cbe'].fill(self._analysis.c_hit_cbe)
452
458
  outer_n_hit = [self._analysis.c_hit_umb[k] + self._analysis.c_hit_cor[k] for k in range(len(self._analysis.c_hit_cor))]
453
459
  self.nhit_plots['i_vs_o_nhit'].fill((self._analysis.c_hit_cbe, outer_n_hit))
460
+ self.nhit_plots['umb_vs_cor_nhit'].fill((self._analysis.c_hit_umb, self._analysis.c_hit_cor))
461
+ self.nhit_plots['cbe_vs_umb_nhit'].fill((self._analysis.c_hit_cbe, self._analysis.c_hit_umb))
462
+ self.nhit_plots['cbe_vs_cor_nhit'].fill((self._analysis.c_hit_cbe, self._analysis.c_hit_cbe))
454
463
  self.nhit_plots['thit' ].fill(self._analysis.c_thit)
455
464
  self.nhit_plots['rblink' ].fill(self._analysis.c_rblink)
456
465
  self.nhit_plots['miss_hit'].fill(self._analysis.c_miss_hit)
@@ -474,10 +483,29 @@ class TofAnalysis:
474
483
  else:
475
484
  self.tmg_plots[k].fill(self._analysis.cache.get_f32_data(k))
476
485
  for k in self.edep_plots:
477
- if not k in ['edep', 'edep_cor', 'edep_cbe', 'edep_cor']:
478
- pnl = int(k[8:])
486
+ if not k in ['umb_vs_cor_edep', 'cbe_vs_cor_edep', 'cbe_vs_umb_edep', 'edep', 'edep_cor', 'edep_cbe', 'edep_cor']:
487
+ try:
488
+ pnl = int(k[8:])
489
+ except Exception as e:
490
+ print (f'(can not get panel edep for {k}')
491
+ continue
479
492
  self.edep_plots[k].fill(self._analysis.cache.get_f32_data_panel("edep", pnl))
480
493
  continue
494
+ if k == 'umb_vs_cor_edep':
495
+ self.edep_plots[k].fill(\
496
+ self._analysis.cache.get_f32_data("edep_umb"),
497
+ self._analysis.cache.get_f32_data("edep_cor"))
498
+ continue
499
+ if k == 'cbe_vs_cor_edep':
500
+ self.edep_plots[k].fill(\
501
+ self._analysis.cache.get_f32_data("edep_cbe"),
502
+ self._analysis.cache.get_f32_data("edep_cor"))
503
+ continue
504
+ if k == 'cbe_vs_umb_edep':
505
+ self.edep_plots[k].fill(\
506
+ self._analysis.cache.get_f32_data("edep_cbe"),
507
+ self._analysis.cache.get_f32_data("edep_umb"))
508
+ continue
481
509
  self.edep_plots[k].fill(self._analysis.cache.get_f32_data(k))
482
510
  self._analysis.cache.clear()
483
511
 
@@ -1118,6 +1118,9 @@ impl TofAnalysis {
1118
1118
 
1119
1119
  fn add_other_hit_cache(&mut self, other : &TofAnalysis) {
1120
1120
  self.c_hit .extend_from_slice(&other.c_hit);
1121
+ self.c_hit_umb .extend_from_slice(&other.c_hit_umb);
1122
+ self.c_hit_cor .extend_from_slice(&other.c_hit_cor);
1123
+ self.c_hit_cbe .extend_from_slice(&other.c_hit_cbe);
1121
1124
  self.c_thit .extend_from_slice(&other.c_thit);
1122
1125
  self.c_rblink .extend_from_slice(&other.c_rblink);
1123
1126
  self.c_miss_hit.extend_from_slice(&other.c_miss_hit);
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes