gondola 0.11.47__tar.gz → 0.11.50__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 (110) hide show
  1. {gondola-0.11.47 → gondola-0.11.50}/Cargo.lock +1 -1
  2. {gondola-0.11.47 → gondola-0.11.50}/Cargo.toml +1 -1
  3. {gondola-0.11.47 → gondola-0.11.50}/PKG-INFO +1 -1
  4. {gondola-0.11.47 → gondola-0.11.50}/python/gondola/db.py +8 -1
  5. {gondola-0.11.47 → gondola-0.11.50}/python/gondola/events.py +6 -1
  6. {gondola-0.11.47 → gondola-0.11.50}/python/gondola/tof/__init__.py +18 -9
  7. {gondola-0.11.47 → gondola-0.11.50}/src/events/telemetry_event.rs +12 -2
  8. {gondola-0.11.47 → gondola-0.11.50}/.gitignore +0 -0
  9. {gondola-0.11.47 → gondola-0.11.50}/README.md +0 -0
  10. {gondola-0.11.47 → gondola-0.11.50}/alert-manifest-test.toml +0 -0
  11. {gondola-0.11.47 → gondola-0.11.50}/benches/bench.rs +0 -0
  12. {gondola-0.11.47 → gondola-0.11.50}/build.sh +0 -0
  13. {gondola-0.11.47 → gondola-0.11.50}/diesel.toml +0 -0
  14. {gondola-0.11.47 → gondola-0.11.50}/liftof-config-decompressed.toml +0 -0
  15. {gondola-0.11.47 → gondola-0.11.50}/liftof-config-test-changed.toml +0 -0
  16. {gondola-0.11.47 → gondola-0.11.50}/liftof-config.diff +0 -0
  17. {gondola-0.11.47 → gondola-0.11.50}/publish_to_bluejay.sh +0 -0
  18. {gondola-0.11.47 → gondola-0.11.50}/pyproject.toml +0 -0
  19. {gondola-0.11.47 → gondola-0.11.50}/python/gondola/__init__.py +0 -0
  20. {gondola-0.11.47 → gondola-0.11.50}/python/gondola/calibration.py +0 -0
  21. {gondola-0.11.47 → gondola-0.11.50}/python/gondola/gaps_flight.db +0 -0
  22. {gondola-0.11.47 → gondola-0.11.50}/python/gondola/io/__init__.py +0 -0
  23. {gondola-0.11.47 → gondola-0.11.50}/python/gondola/io/streamers.py +0 -0
  24. {gondola-0.11.47 → gondola-0.11.50}/python/gondola/reconstruction/__init__.py +0 -0
  25. {gondola-0.11.47 → gondola-0.11.50}/python/gondola/tof/analysis.py +0 -0
  26. {gondola-0.11.47 → gondola-0.11.50}/python/gondola/tracker/__init__.py +0 -0
  27. {gondola-0.11.47 → gondola-0.11.50}/python/gondola/tracker/analysis.py +0 -0
  28. {gondola-0.11.47 → gondola-0.11.50}/python/gondola/visual/__init__.py +0 -0
  29. {gondola-0.11.47 → gondola-0.11.50}/python/gondola/visual/tof.py +0 -0
  30. {gondola-0.11.47 → gondola-0.11.50}/python/gondola/visual/tracker.py +0 -0
  31. {gondola-0.11.47 → gondola-0.11.50}/src/calibration/tof.rs +0 -0
  32. {gondola-0.11.47 → gondola-0.11.50}/src/calibration/tracker.rs +0 -0
  33. {gondola-0.11.47 → gondola-0.11.50}/src/calibration.rs +0 -0
  34. {gondola-0.11.47 → gondola-0.11.50}/src/constants.rs +0 -0
  35. {gondola-0.11.47 → gondola-0.11.50}/src/database/schema.rs +0 -0
  36. {gondola-0.11.47 → gondola-0.11.50}/src/database.rs +0 -0
  37. {gondola-0.11.47 → gondola-0.11.50}/src/errors.rs +0 -0
  38. {gondola-0.11.47 → gondola-0.11.50}/src/events/rb_event.rs +0 -0
  39. {gondola-0.11.47 → gondola-0.11.50}/src/events/rb_event_header.rs +0 -0
  40. {gondola-0.11.47 → gondola-0.11.50}/src/events/rb_waveform.rs +0 -0
  41. {gondola-0.11.47 → gondola-0.11.50}/src/events/tof_event.rs +0 -0
  42. {gondola-0.11.47 → gondola-0.11.50}/src/events/tof_hit.rs +0 -0
  43. {gondola-0.11.47 → gondola-0.11.50}/src/events/tracker_hit.rs +0 -0
  44. {gondola-0.11.47 → gondola-0.11.50}/src/events.rs +0 -0
  45. {gondola-0.11.47 → gondola-0.11.50}/src/io/caraspace/frame.rs +0 -0
  46. {gondola-0.11.47 → gondola-0.11.50}/src/io/caraspace/reader.rs +0 -0
  47. {gondola-0.11.47 → gondola-0.11.50}/src/io/caraspace/socket_reader.rs +0 -0
  48. {gondola-0.11.47 → gondola-0.11.50}/src/io/caraspace/writer.rs +0 -0
  49. {gondola-0.11.47 → gondola-0.11.50}/src/io/caraspace.rs +0 -0
  50. {gondola-0.11.47 → gondola-0.11.50}/src/io/data_source.rs +0 -0
  51. {gondola-0.11.47 → gondola-0.11.50}/src/io/ipbus.rs +0 -0
  52. {gondola-0.11.47 → gondola-0.11.50}/src/io/parsers.rs +0 -0
  53. {gondola-0.11.47 → gondola-0.11.50}/src/io/root_reader.rs +0 -0
  54. {gondola-0.11.47 → gondola-0.11.50}/src/io/serialization.rs +0 -0
  55. {gondola-0.11.47 → gondola-0.11.50}/src/io/streamers.rs +0 -0
  56. {gondola-0.11.47 → gondola-0.11.50}/src/io/telemetry_reader.rs +0 -0
  57. {gondola-0.11.47 → gondola-0.11.50}/src/io/tof_reader.rs +0 -0
  58. {gondola-0.11.47 → gondola-0.11.50}/src/io/tof_writer.rs +0 -0
  59. {gondola-0.11.47 → gondola-0.11.50}/src/io.rs +0 -0
  60. {gondola-0.11.47 → gondola-0.11.50}/src/lib.rs +0 -0
  61. {gondola-0.11.47 → gondola-0.11.50}/src/monitoring/cpu_moni_data.rs +0 -0
  62. {gondola-0.11.47 → gondola-0.11.50}/src/monitoring/heartbeats/data_sink_hb.rs +0 -0
  63. {gondola-0.11.47 → gondola-0.11.50}/src/monitoring/heartbeats/event_builder_hb.rs +0 -0
  64. {gondola-0.11.47 → gondola-0.11.50}/src/monitoring/heartbeats/master_trigger_hb.rs +0 -0
  65. {gondola-0.11.47 → gondola-0.11.50}/src/monitoring/heartbeats.rs +0 -0
  66. {gondola-0.11.47 → gondola-0.11.50}/src/monitoring/ltb_moni_data.rs +0 -0
  67. {gondola-0.11.47 → gondola-0.11.50}/src/monitoring/mtb_moni_data.rs +0 -0
  68. {gondola-0.11.47 → gondola-0.11.50}/src/monitoring/pa_moni_data.rs +0 -0
  69. {gondola-0.11.47 → gondola-0.11.50}/src/monitoring/pb_moni_data.rs +0 -0
  70. {gondola-0.11.47 → gondola-0.11.50}/src/monitoring/rb_moni_data.rs +0 -0
  71. {gondola-0.11.47 → gondola-0.11.50}/src/monitoring/run_statistics.rs +0 -0
  72. {gondola-0.11.47 → gondola-0.11.50}/src/monitoring.rs +0 -0
  73. {gondola-0.11.47 → gondola-0.11.50}/src/packets/bfsw_ack_packet.rs +0 -0
  74. {gondola-0.11.47 → gondola-0.11.50}/src/packets/gps_packet.rs +0 -0
  75. {gondola-0.11.47 → gondola-0.11.50}/src/packets/magnetometer.rs +0 -0
  76. {gondola-0.11.47 → gondola-0.11.50}/src/packets/pdu_packet.rs +0 -0
  77. {gondola-0.11.47 → gondola-0.11.50}/src/packets/telemetry_packet.rs +0 -0
  78. {gondola-0.11.47 → gondola-0.11.50}/src/packets/telemetry_packet_header.rs +0 -0
  79. {gondola-0.11.47 → gondola-0.11.50}/src/packets/telemetry_packet_type.rs +0 -0
  80. {gondola-0.11.47 → gondola-0.11.50}/src/packets/tof_packet.rs +0 -0
  81. {gondola-0.11.47 → gondola-0.11.50}/src/packets/tof_packet_type.rs +0 -0
  82. {gondola-0.11.47 → gondola-0.11.50}/src/packets/tracker.rs +0 -0
  83. {gondola-0.11.47 → gondola-0.11.50}/src/packets/tracker_header.rs +0 -0
  84. {gondola-0.11.47 → gondola-0.11.50}/src/packets.rs +0 -0
  85. {gondola-0.11.47 → gondola-0.11.50}/src/prelude.rs +0 -0
  86. {gondola-0.11.47 → gondola-0.11.50}/src/python.rs +0 -0
  87. {gondola-0.11.47 → gondola-0.11.50}/src/random.rs +0 -0
  88. {gondola-0.11.47 → gondola-0.11.50}/src/stats.rs +0 -0
  89. {gondola-0.11.47 → gondola-0.11.50}/src/tof/alerts.rs +0 -0
  90. {gondola-0.11.47 → gondola-0.11.50}/src/tof/algorithms.rs +0 -0
  91. {gondola-0.11.47 → gondola-0.11.50}/src/tof/analysis.rs +0 -0
  92. {gondola-0.11.47 → gondola-0.11.50}/src/tof/analysis_engine.rs +0 -0
  93. {gondola-0.11.47 → gondola-0.11.50}/src/tof/commands.rs +0 -0
  94. {gondola-0.11.47 → gondola-0.11.50}/src/tof/config.rs +0 -0
  95. {gondola-0.11.47 → gondola-0.11.50}/src/tof/cuts.rs +0 -0
  96. {gondola-0.11.47 → gondola-0.11.50}/src/tof/detector_status.rs +0 -0
  97. {gondola-0.11.47 → gondola-0.11.50}/src/tof/master_trigger/control.rs +0 -0
  98. {gondola-0.11.47 → gondola-0.11.50}/src/tof/master_trigger/registers.rs +0 -0
  99. {gondola-0.11.47 → gondola-0.11.50}/src/tof/master_trigger.rs +0 -0
  100. {gondola-0.11.47 → gondola-0.11.50}/src/tof/panic.rs +0 -0
  101. {gondola-0.11.47 → gondola-0.11.50}/src/tof/rb_paddle_id.rs +0 -0
  102. {gondola-0.11.47 → gondola-0.11.50}/src/tof/settings.rs +0 -0
  103. {gondola-0.11.47 → gondola-0.11.50}/src/tof/signal_handler.rs +0 -0
  104. {gondola-0.11.47 → gondola-0.11.50}/src/tof/thread_control.rs +0 -0
  105. {gondola-0.11.47 → gondola-0.11.50}/src/tof/tof_response.rs +0 -0
  106. {gondola-0.11.47 → gondola-0.11.50}/src/tof.rs +0 -0
  107. {gondola-0.11.47 → gondola-0.11.50}/src/tracker/strips.rs +0 -0
  108. {gondola-0.11.47 → gondola-0.11.50}/src/tracker.rs +0 -0
  109. {gondola-0.11.47 → gondola-0.11.50}/src/version.rs +0 -0
  110. {gondola-0.11.47 → gondola-0.11.50}/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.47"
1364
+ version = "0.11.50"
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.47"
3
+ version = "0.11.50"
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.47
3
+ Version: 0.11.50
4
4
  Requires-Dist: tqdm>=4.0
5
5
  Requires-Dist: numpy>=2.3
6
6
  Requires-Dist: matplotlib>=3.10
@@ -36,12 +36,19 @@ TofPaddleTimingConstant = _gc.db.TofPaddleTimingConstant
36
36
  TofPaddleTimingConstant.__module__ = __name__
37
37
  TofPaddleTimingConstant.__name__ = 'TofPaddleTimingConstant'
38
38
  get_all_rbids_in_db = _gc.db.get_all_rbids_in_db
39
+ get_all_rbids_in_db.__module__ = __name__
40
+
39
41
  get_hid_vid_map = _gc.db.get_hid_vid_map
42
+ get_hid_vid_map.__module__ = __name__
43
+
40
44
  get_vid_hid_map = _gc.db.get_vid_hid_map
45
+ get_vid_hid_map.__module__ = __name__
46
+
41
47
  get_dsi_j_ch_pid_map = _gc.db.get_dsi_j_ch_pid_map
48
+ get_dsi_j_ch_pid_map.__module__ = __name__
42
49
 
43
50
  __all__ = ['TofPaddle','ReadoutBoard', 'TofPaddleTimingConstant', 'TrackerStrip','TrackerStripPedestal', 'TrackerStripTransferFunction',\
44
- 'TrackerStripCmnNoise']
51
+ 'TrackerStripCmnNoise','get_all_rbids_in_db','get_hid_vid_map','get_vid_hid_map','get_dsi_j_ch_pid_map']
45
52
 
46
53
  #----------------------------------------
47
54
  # extend the TofPaddles with a few methods
@@ -29,10 +29,15 @@ TelemetryEvent.__module__ = __name__
29
29
  TelemetryEvent.__name__ = 'TelemetryEvent'
30
30
  # functions
31
31
  strip_id = _gondola_core.events.strip_id
32
+ strip_id.__module__ = __name__
32
33
  # enums
33
34
  EventQuality = _gondola_core.events.EventQuality
35
+ EventQuality.__module__ = __name__
34
36
  TriggerType = _gondola_core.events.TriggerType
37
+ TriggerType.__module__ = __name__
35
38
  LTBThreshold = _gondola_core.events.LTBThreshold
39
+ LTBThreshold.__module__ = __name__
36
40
  EventStatus = _gondola_core.events.EventStatus
41
+ EventStatus.__module__ = __name__
37
42
  DataType = _gondola_core.events.DataType
38
-
43
+ DataType.__module__ = __name__
@@ -68,47 +68,56 @@ MasterTrigger.__name__ = 'MasterTrigger'
68
68
 
69
69
  ## command factories
70
70
  start_run = _gc.tof.start_run
71
- #start_run.__module__ = __name__
71
+ start_run.__module__ = __name__
72
72
  #start_run.__name___ = 'start_run'
73
73
  #
74
74
  stop_run = _gc.tof.stop_run
75
- #stop_run.__module__ = __name__
75
+ stop_run.__module__ = __name__
76
76
  #stop_run.__name___ = 'stop_run'
77
77
  #
78
78
  enable_verification_run = _gc.tof.enable_verification_run
79
- #enable_verification_run.__module__ = __name__
79
+ enable_verification_run.__module__ = __name__
80
80
  #enable_verification_run.__name___ = 'enable_verification_run'
81
81
  #
82
82
  restart_liftofrb = _gc.tof.restart_liftofrb
83
- #restart_liftofrb.___module__ = __name__
83
+ restart_liftofrb.__module__ = __name__
84
84
  #restart_liftofrb.__name__ = 'restart_liftofrb'
85
85
  #
86
86
  shutdown_all_rbs = _gc.tof.shutdown_all_rbs
87
- #shutdown_all_rbs.__module__ = __name__
87
+ shutdown_all_rbs.__module__ = __name__
88
88
  #shutdown_all_rbs.__name__ = 'shutdown_all_rbs'
89
89
  #
90
90
  shutdown_rat = _gc.tof.shutdown_rat
91
- #shutdown_rat.__module__ = __name__
91
+ shutdown_rat.__module__ = __name__
92
92
  #shutdown_rat.__name__ = 'shutdown_rat'
93
93
  #
94
94
  shutdown_ratpair = _gc.tof.shutdown_ratpair
95
- #shutdown_ratpair.__module__ = __name__
95
+ shutdown_ratpair.__module__ = __name__
96
96
  #shutdown_ratpair.__name__ = 'shutdown_ratpair'
97
97
  #
98
98
  shutdown_rb = _gc.tof.shutdown_rb
99
- #shutdown_rb.__module__ = __name__
99
+ shutdown_rb.__module__ = __name__
100
100
  #shutdown_rb.__name__ = 'shutdown_rb'
101
101
  #
102
102
  shutdown_tofcpu = _gc.tof.shutdown_tofcpu
103
- #shutdown_tofcpu.__module__ = __name__
103
+ shutdown_tofcpu.__module__ = __name__
104
104
  #shutdown_tofcpu.__name__ = 'shutdown_tofcpu'
105
105
  #
106
106
  run_action_alfa = _gc.tof.run_action_alfa
107
+ run_action_alfa.__module__ = __name__
107
108
  run_action_bravo = _gc.tof.run_action_bravo
109
+ run_action_bravo.__module__ = __name__
108
110
  run_action_charlie = _gc.tof.run_action_charlie
111
+ run_action_charlie.__module__ = __name__
109
112
  run_action_whiskey = _gc.tof.run_action_whiskey
113
+ run_action_whiskey.__module__ = __name__
110
114
  run_action_tango = _gc.tof.run_action_tango
115
+ run_action_tango.__module__ = __name__
111
116
  run_action_foxtrott = _gc.tof.run_action_foxtrott
117
+ run_action_foxtrott.__module__ = __name__
112
118
  request_liftof_setitngs = _gc.tof.request_liftof_settings
119
+ request_liftof_setitngs.__module__ = __name__
113
120
  apply_settings_diff = _gc.tof.apply_settings_diff
121
+ apply_settings_diff.__module__ = __name__
114
122
  restore_default_config = _gc.tof.restore_default_config
123
+ restore_default_config.__module__ = __name__
@@ -269,8 +269,11 @@ impl Serialization for TelemetryEvent {
269
269
  impl fmt::Display for TelemetryEvent {
270
270
  fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
271
271
  let mut repr = String::from("<TelemetryEvent:");
272
+ let mut te = self.tof_event.clone();
273
+ te.calc_gcu_variables();
272
274
  let tof_str = format!("\n {}", self.tof_event);
273
275
  let mut good_hits = 0;
276
+
274
277
  if self.version == 0 {
275
278
  repr += "\n VERSION 0 NOT SUPPORTED!!";
276
279
  } else if self.version == 1 {
@@ -280,8 +283,15 @@ impl fmt::Display for TelemetryEvent {
280
283
  }
281
284
  repr += &(format!(" {}", self.header));
282
285
  repr += "\n ** ** ** MERGED ** ** **";
283
- repr += &(format!("\n version {}", self.version));
284
- repr += &(format!("\n event ID {}", self.event_id));
286
+ repr += &(format!("\n version {}", self.version));
287
+ repr += &(format!("\n event ID {}", self.event_id));
288
+ repr += "\n ** ** ** TOF GCU VARIABLES ** ** **";
289
+ repr += &(format!("\n n_hits_umb {}", te.n_hits_umb));
290
+ repr += &(format!("\n n_hits_cbe {}", te.n_hits_cbe));
291
+ repr += &(format!("\n n_hits_cor {}", te.n_hits_cor));
292
+ repr += &(format!("\n tot_edep_umb {}", te.tot_edep_umb));
293
+ repr += &(format!("\n tot_edep_cbe {}", te.tot_edep_cbe));
294
+ repr += &(format!("\n tot_edep_cor {}", te.tot_edep_cor));
285
295
  if self.version == 0 {
286
296
  repr += "\n VERSION 0 NOT SUPPORTED!!";
287
297
  }
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