gondola 0.11.37__tar.gz → 0.11.39__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.37 → gondola-0.11.39}/Cargo.lock +1 -1
- {gondola-0.11.37 → gondola-0.11.39}/Cargo.toml +1 -1
- {gondola-0.11.37 → gondola-0.11.39}/PKG-INFO +1 -1
- {gondola-0.11.37 → gondola-0.11.39}/python/gondola/tof/analysis.py +14 -11
- {gondola-0.11.37 → gondola-0.11.39}/src/tof/analysis.rs +33 -0
- {gondola-0.11.37 → gondola-0.11.39}/.gitignore +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/README.md +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/alert-manifest-test.toml +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/benches/bench.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/build.sh +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/diesel.toml +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/gondola-0.11.24-cp311-abi3-manylinux_2_34_x86_64.whl +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/liftof-config-decompressed.toml +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/liftof-config-default.toml +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/liftof-config-test-changed.toml +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/liftof-config.diff +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/liftof-config.toml +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/publish_to_bluejay.sh +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/pyproject.toml +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/python/gondola/__init__.py +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/python/gondola/calibration.py +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/python/gondola/db.py +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/python/gondola/events.py +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/python/gondola/gaps_flight.db +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/python/gondola/io/__init__.py +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/python/gondola/io/streamers.py +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/python/gondola/reconstruction/__init__.py +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/python/gondola/tof/__init__.py +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/python/gondola/tracker/__init__.py +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/python/gondola/tracker/analysis.py +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/python/gondola/visual/__init__.py +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/python/gondola/visual/tof.py +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/python/gondola/visual/tracker.py +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/calibration/tof.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/calibration/tracker.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/calibration.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/constants.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/database/schema.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/database.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/errors.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/events/rb_event.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/events/rb_event_header.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/events/rb_waveform.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/events/telemetry_event.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/events/tof_event.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/events/tof_hit.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/events/tracker_hit.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/events.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/io/caraspace/frame.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/io/caraspace/reader.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/io/caraspace/socket_reader.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/io/caraspace/writer.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/io/caraspace.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/io/data_source.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/io/ipbus.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/io/parsers.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/io/root_reader.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/io/serialization.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/io/streamers.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/io/telemetry_reader.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/io/tof_reader.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/io/tof_writer.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/io.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/lib.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/monitoring/cpu_moni_data.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/monitoring/heartbeats/data_sink_hb.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/monitoring/heartbeats/event_builder_hb.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/monitoring/heartbeats/master_trigger_hb.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/monitoring/heartbeats.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/monitoring/ltb_moni_data.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/monitoring/mtb_moni_data.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/monitoring/pa_moni_data.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/monitoring/pb_moni_data.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/monitoring/rb_moni_data.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/monitoring/run_statistics.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/monitoring.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/packets/bfsw_ack_packet.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/packets/gps_packet.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/packets/magnetometer.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/packets/pdu_packet.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/packets/telemetry_packet.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/packets/telemetry_packet_header.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/packets/telemetry_packet_type.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/packets/tof_packet.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/packets/tof_packet_type.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/packets/tracker.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/packets/tracker_header.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/packets.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/prelude.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/python.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/random.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/stats.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/tof/alerts.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/tof/algorithms.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/tof/analysis_engine.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/tof/commands.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/tof/config.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/tof/cuts.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/tof/detector_status.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/tof/master_trigger/control.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/tof/master_trigger/registers.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/tof/master_trigger.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/tof/panic.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/tof/rb_paddle_id.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/tof/settings.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/tof/signal_handler.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/tof/thread_control.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/tof/tof_response.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/tof.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/tracker/strips.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/tracker.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/src/version.rs +0 -0
- {gondola-0.11.37 → gondola-0.11.39}/tests/test.rs +0 -0
|
@@ -137,15 +137,16 @@ class TofAnalysis:
|
|
|
137
137
|
|
|
138
138
|
def _nhit_plots(self):
|
|
139
139
|
nhit_plots = {
|
|
140
|
-
'hit'
|
|
141
|
-
'nhit_cbe'
|
|
142
|
-
'nhit_umb'
|
|
143
|
-
'nhit_cor'
|
|
144
|
-
'
|
|
145
|
-
'
|
|
146
|
-
'
|
|
140
|
+
'hit' : d.histogram.hist1d(self.NHIT_BINS),
|
|
141
|
+
'nhit_cbe' : d.histogram.hist1d(self.NHIT_BINS),
|
|
142
|
+
'nhit_umb' : d.histogram.hist1d(self.NHIT_BINS),
|
|
143
|
+
'nhit_cor' : d.histogram.hist1d(self.NHIT_BINS),
|
|
144
|
+
'i_vs_o_nhit': d.histogram.hist2d((self.NHIT_BINS, self.NHIT_BINS)),
|
|
145
|
+
'thit' : d.histogram.hist1d(self.NHIT_BINS),
|
|
146
|
+
'rblink' : d.histogram.hist1d(self.NHIT_BINS),
|
|
147
|
+
'miss_hit' : d.histogram.hist1d(self.PID_BINS),
|
|
147
148
|
# these are non causal hits
|
|
148
|
-
'nc_pdls'
|
|
149
|
+
'nc_pdls' : d.histogram.hist1d(self.PID_BINS),
|
|
149
150
|
}
|
|
150
151
|
return nhit_plots
|
|
151
152
|
|
|
@@ -445,9 +446,11 @@ class TofAnalysis:
|
|
|
445
446
|
if self._analysis.hit_cache_len >= self.event_cache_size:
|
|
446
447
|
# hit statistics
|
|
447
448
|
self.nhit_plots['hit' ].fill(self._analysis.c_hit)
|
|
448
|
-
self.nhit_plots['nhit_umb'].fill(self._analysis.
|
|
449
|
-
self.nhit_plots['nhit_cor'].fill(self._analysis.
|
|
450
|
-
self.nhit_plots['nhit_cbe'].fill(self._analysis.
|
|
449
|
+
self.nhit_plots['nhit_umb'].fill(self._analysis.c_hit_umb)
|
|
450
|
+
self.nhit_plots['nhit_cor'].fill(self._analysis.c_hit_cor)
|
|
451
|
+
self.nhit_plots['nhit_cbe'].fill(self._analysis.c_hit_cbe)
|
|
452
|
+
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
|
+
self.nhit_plots['i_vs_o_nhit'].fill((self._analysis.c_hit_cbe, outer_n_hit))
|
|
451
454
|
self.nhit_plots['thit' ].fill(self._analysis.c_thit)
|
|
452
455
|
self.nhit_plots['rblink' ].fill(self._analysis.c_rblink)
|
|
453
456
|
self.nhit_plots['miss_hit'].fill(self._analysis.c_miss_hit)
|
|
@@ -1157,6 +1157,39 @@ impl TofAnalysis {
|
|
|
1157
1157
|
return Ok(py_array);
|
|
1158
1158
|
}
|
|
1159
1159
|
|
|
1160
|
+
/// This is the number of hits/event for each seen event
|
|
1161
|
+
#[pyo3(name="c_hit_cbe")]
|
|
1162
|
+
#[getter]
|
|
1163
|
+
fn c_hit_cbe_py<'py>(&'py self, py: Python<'py>) -> PyResult<Bound<'py, PyArray1<u8>>> {
|
|
1164
|
+
let slice = &self.c_hit_cbe[..];
|
|
1165
|
+
// this is supposed to be readonly
|
|
1166
|
+
// FIXME - check this!
|
|
1167
|
+
let py_array = PyArray1::from_slice(py, slice);
|
|
1168
|
+
return Ok(py_array);
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
/// This is the number of hits/event for each seen event
|
|
1172
|
+
#[pyo3(name="c_hit_umb")]
|
|
1173
|
+
#[getter]
|
|
1174
|
+
fn c_hit_umb_py<'py>(&'py self, py: Python<'py>) -> PyResult<Bound<'py, PyArray1<u8>>> {
|
|
1175
|
+
let slice = &self.c_hit_umb[..];
|
|
1176
|
+
// this is supposed to be readonly
|
|
1177
|
+
// FIXME - check this!
|
|
1178
|
+
let py_array = PyArray1::from_slice(py, slice);
|
|
1179
|
+
return Ok(py_array);
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
/// This is the number of hits/event for each seen event
|
|
1183
|
+
#[pyo3(name="c_hit_cor")]
|
|
1184
|
+
#[getter]
|
|
1185
|
+
fn c_hit_cor_py<'py>(&'py self, py: Python<'py>) -> PyResult<Bound<'py, PyArray1<u8>>> {
|
|
1186
|
+
let slice = &self.c_hit_cor[..];
|
|
1187
|
+
// this is supposed to be readonly
|
|
1188
|
+
// FIXME - check this!
|
|
1189
|
+
let py_array = PyArray1::from_slice(py, slice);
|
|
1190
|
+
return Ok(py_array);
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1160
1193
|
/// This is the number of TRIGGER hits/event for each seen event
|
|
1161
1194
|
#[pyo3(name="c_thit")]
|
|
1162
1195
|
#[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
|