gondola 0.11.38__tar.gz → 0.11.40__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.
- {gondola-0.11.38 → gondola-0.11.40}/Cargo.lock +1 -1
- {gondola-0.11.38 → gondola-0.11.40}/Cargo.toml +1 -1
- {gondola-0.11.38 → gondola-0.11.40}/PKG-INFO +1 -1
- {gondola-0.11.38 → gondola-0.11.40}/python/gondola/tof/analysis.py +5 -1
- {gondola-0.11.38 → gondola-0.11.40}/src/tof/analysis.rs +36 -0
- {gondola-0.11.38 → gondola-0.11.40}/.gitignore +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/README.md +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/alert-manifest-test.toml +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/benches/bench.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/build.sh +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/diesel.toml +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/gondola-0.11.24-cp311-abi3-manylinux_2_34_x86_64.whl +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/liftof-config-decompressed.toml +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/liftof-config-default.toml +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/liftof-config-test-changed.toml +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/liftof-config.diff +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/liftof-config.toml +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/publish_to_bluejay.sh +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/pyproject.toml +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/python/gondola/__init__.py +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/python/gondola/calibration.py +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/python/gondola/db.py +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/python/gondola/events.py +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/python/gondola/gaps_flight.db +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/python/gondola/io/__init__.py +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/python/gondola/io/streamers.py +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/python/gondola/reconstruction/__init__.py +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/python/gondola/tof/__init__.py +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/python/gondola/tracker/__init__.py +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/python/gondola/tracker/analysis.py +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/python/gondola/visual/__init__.py +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/python/gondola/visual/tof.py +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/python/gondola/visual/tracker.py +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/calibration/tof.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/calibration/tracker.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/calibration.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/constants.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/database/schema.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/database.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/errors.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/events/rb_event.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/events/rb_event_header.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/events/rb_waveform.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/events/telemetry_event.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/events/tof_event.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/events/tof_hit.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/events/tracker_hit.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/events.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/io/caraspace/frame.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/io/caraspace/reader.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/io/caraspace/socket_reader.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/io/caraspace/writer.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/io/caraspace.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/io/data_source.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/io/ipbus.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/io/parsers.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/io/root_reader.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/io/serialization.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/io/streamers.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/io/telemetry_reader.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/io/tof_reader.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/io/tof_writer.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/io.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/lib.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/monitoring/cpu_moni_data.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/monitoring/heartbeats/data_sink_hb.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/monitoring/heartbeats/event_builder_hb.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/monitoring/heartbeats/master_trigger_hb.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/monitoring/heartbeats.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/monitoring/ltb_moni_data.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/monitoring/mtb_moni_data.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/monitoring/pa_moni_data.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/monitoring/pb_moni_data.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/monitoring/rb_moni_data.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/monitoring/run_statistics.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/monitoring.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/packets/bfsw_ack_packet.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/packets/gps_packet.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/packets/magnetometer.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/packets/pdu_packet.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/packets/telemetry_packet.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/packets/telemetry_packet_header.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/packets/telemetry_packet_type.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/packets/tof_packet.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/packets/tof_packet_type.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/packets/tracker.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/packets/tracker_header.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/packets.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/prelude.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/python.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/random.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/stats.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/tof/alerts.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/tof/algorithms.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/tof/analysis_engine.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/tof/commands.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/tof/config.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/tof/cuts.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/tof/detector_status.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/tof/master_trigger/control.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/tof/master_trigger/registers.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/tof/master_trigger.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/tof/panic.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/tof/rb_paddle_id.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/tof/settings.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/tof/signal_handler.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/tof/thread_control.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/tof/tof_response.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/tof.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/tracker/strips.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/tracker.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/src/version.rs +0 -0
- {gondola-0.11.38 → gondola-0.11.40}/tests/test.rs +0 -0
|
@@ -475,7 +475,11 @@ class TofAnalysis:
|
|
|
475
475
|
self.tmg_plots[k].fill(self._analysis.cache.get_f32_data(k))
|
|
476
476
|
for k in self.edep_plots:
|
|
477
477
|
if not k in ['edep', 'edep_cor', 'edep_cbe', 'edep_cor']:
|
|
478
|
-
|
|
478
|
+
try:
|
|
479
|
+
pnl = int(k[8:])
|
|
480
|
+
except Exception as e:
|
|
481
|
+
print (f'(can not get panel edep for {k}')
|
|
482
|
+
continue
|
|
479
483
|
self.edep_plots[k].fill(self._analysis.cache.get_f32_data_panel("edep", pnl))
|
|
480
484
|
continue
|
|
481
485
|
self.edep_plots[k].fill(self._analysis.cache.get_f32_data(k))
|
|
@@ -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);
|
|
@@ -1157,6 +1160,39 @@ impl TofAnalysis {
|
|
|
1157
1160
|
return Ok(py_array);
|
|
1158
1161
|
}
|
|
1159
1162
|
|
|
1163
|
+
/// This is the number of hits/event for each seen event
|
|
1164
|
+
#[pyo3(name="c_hit_cbe")]
|
|
1165
|
+
#[getter]
|
|
1166
|
+
fn c_hit_cbe_py<'py>(&'py self, py: Python<'py>) -> PyResult<Bound<'py, PyArray1<u8>>> {
|
|
1167
|
+
let slice = &self.c_hit_cbe[..];
|
|
1168
|
+
// this is supposed to be readonly
|
|
1169
|
+
// FIXME - check this!
|
|
1170
|
+
let py_array = PyArray1::from_slice(py, slice);
|
|
1171
|
+
return Ok(py_array);
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
/// This is the number of hits/event for each seen event
|
|
1175
|
+
#[pyo3(name="c_hit_umb")]
|
|
1176
|
+
#[getter]
|
|
1177
|
+
fn c_hit_umb_py<'py>(&'py self, py: Python<'py>) -> PyResult<Bound<'py, PyArray1<u8>>> {
|
|
1178
|
+
let slice = &self.c_hit_umb[..];
|
|
1179
|
+
// this is supposed to be readonly
|
|
1180
|
+
// FIXME - check this!
|
|
1181
|
+
let py_array = PyArray1::from_slice(py, slice);
|
|
1182
|
+
return Ok(py_array);
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
/// This is the number of hits/event for each seen event
|
|
1186
|
+
#[pyo3(name="c_hit_cor")]
|
|
1187
|
+
#[getter]
|
|
1188
|
+
fn c_hit_cor_py<'py>(&'py self, py: Python<'py>) -> PyResult<Bound<'py, PyArray1<u8>>> {
|
|
1189
|
+
let slice = &self.c_hit_cor[..];
|
|
1190
|
+
// this is supposed to be readonly
|
|
1191
|
+
// FIXME - check this!
|
|
1192
|
+
let py_array = PyArray1::from_slice(py, slice);
|
|
1193
|
+
return Ok(py_array);
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1160
1196
|
/// This is the number of TRIGGER hits/event for each seen event
|
|
1161
1197
|
#[pyo3(name="c_thit")]
|
|
1162
1198
|
#[getter]
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|