gondola 0.12.2__tar.gz → 0.12.3__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.12.2 → gondola-0.12.3}/Cargo.lock +1 -1
- {gondola-0.12.2 → gondola-0.12.3}/Cargo.toml +1 -1
- {gondola-0.12.2 → gondola-0.12.3}/PKG-INFO +1 -1
- {gondola-0.12.2 → gondola-0.12.3}/python/gondola/io/__init__.py +17 -1
- {gondola-0.12.2 → gondola-0.12.3}/src/io/tof_reader.rs +19 -4
- {gondola-0.12.2 → gondola-0.12.3}/.gitignore +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/README.md +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/alert-manifest-test.toml +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/benches/bench.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/diesel.toml +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/publish_to_bluejay.sh +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/pyproject.toml +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/python/gondola/__init__.py +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/python/gondola/calibration.py +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/python/gondola/db.py +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/python/gondola/gaps_flight.db +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/python/gondola/reconstruction/__init__.py +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/python/gondola/tof/__init__.py +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/python/gondola/tof/analysis.py +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/python/gondola/tracker/__init__.py +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/python/gondola/tracker/analysis.py +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/python/gondola/visual/__init__.py +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/python/gondola/visual/tof.py +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/python/gondola/visual/tracker.py +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/calibration/tof.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/calibration/tracker.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/calibration.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/constants.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/database/schema.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/database.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/errors.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/events/rb_event.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/events/rb_event_header.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/events/rb_waveform.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/events/telemetry_event.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/events/tof_event.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/events/tof_hit.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/events/tracker_hit.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/events.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/io/caraspace/frame.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/io/caraspace/reader.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/io/caraspace/socket_reader.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/io/caraspace/writer.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/io/caraspace.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/io/data_source.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/io/ipbus.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/io/parsers.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/io/root_reader.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/io/serialization.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/io/streamers.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/io/telemetry_reader.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/io/tof_writer.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/io.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/lib.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/monitoring/cpu_moni_data.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/monitoring/heartbeats/data_sink_hb.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/monitoring/heartbeats/event_builder_hb.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/monitoring/heartbeats/master_trigger_hb.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/monitoring/heartbeats.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/monitoring/ltb_moni_data.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/monitoring/mtb_moni_data.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/monitoring/pa_moni_data.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/monitoring/pb_moni_data.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/monitoring/rb_moni_data.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/monitoring/run_statistics.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/monitoring.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/packets/bfsw_ack_packet.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/packets/gps_packet.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/packets/magnetometer.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/packets/telemetry_packet.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/packets/telemetry_packet_header.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/packets/telemetry_packet_type.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/packets/tof_packet.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/packets/tof_packet_type.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/packets/tracker.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/packets/tracker_header.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/packets.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/prelude.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/python.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/random.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/stats.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/tof/alerts.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/tof/algorithms.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/tof/analysis.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/tof/analysis_engine.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/tof/commands.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/tof/config.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/tof/cuts.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/tof/detector_status.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/tof/master_trigger/control.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/tof/master_trigger/registers.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/tof/master_trigger.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/tof/rb_paddle_id.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/tof/settings.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/tof/signal_handler.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/tof/thread_control.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/tof/tof_response.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/tof.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/tracker/strips.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/tracker.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/src/version.rs +0 -0
- {gondola-0.12.2 → gondola-0.12.3}/tests/test.rs +0 -0
|
@@ -20,13 +20,29 @@ get_all_telemetry_event_names = _gc.io.get_all_telemetry_event_names
|
|
|
20
20
|
#read_example = _gc.io.read_example
|
|
21
21
|
get_runfilename = _gc.io.get_runfilename
|
|
22
22
|
get_califilename = _gc.io.get_califilename
|
|
23
|
-
CRFrameObject = _gc.io.CRFrameObject
|
|
23
|
+
CRFrameObject = _gc.io.CRFrameObject
|
|
24
|
+
CRFrameObject.__module__ = __name__
|
|
25
|
+
CRFrameObject.__name__ = 'CRFrameObject'
|
|
24
26
|
DataSourceKind = _gc.io.DataSourceKind
|
|
25
27
|
CRReader = _gc.io.CRReader
|
|
28
|
+
CRReader.__module__ = __name__
|
|
29
|
+
CRReader.__name__ = 'CRReader'
|
|
30
|
+
|
|
31
|
+
|
|
26
32
|
CRWriter = _gc.io.CRWriter
|
|
33
|
+
CRWriter.__module__ = __name__
|
|
34
|
+
CRWriter.__name__ = 'CRWriter'
|
|
27
35
|
CRFrame = _gc.io.CRFrame
|
|
36
|
+
CRFrame.__module__ = __name__
|
|
37
|
+
CRFrame.__name__ = 'CRFrame'
|
|
28
38
|
TofPacketReader = _gc.io.TofPacketReader
|
|
39
|
+
TofPacketReader.__module__ = __name__
|
|
40
|
+
TofPacketReader.__name__ = 'TofPacketReader'
|
|
41
|
+
|
|
29
42
|
TelemetryPacketReader = _gc.io.TelemetryPacketReader
|
|
43
|
+
TelemetryPacketReader.__module__ = __name__
|
|
44
|
+
TelemetryPacketReader.__name__ = 'TelemetryPacketReader'
|
|
45
|
+
|
|
30
46
|
list_path_contents_sorted = _gc.io.list_path_contents_sorted
|
|
31
47
|
get_utc_now = _gc.io.get_utc_timestamp
|
|
32
48
|
get_utc_date = _gc.io.get_utc_date
|
|
@@ -233,7 +233,14 @@ impl TofPacketReader {
|
|
|
233
233
|
Some(self.filenames[self.file_idx].clone())
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
-
///
|
|
236
|
+
/// Run once over the entire file, skipping most of its content
|
|
237
|
+
/// but retrieve the number of packets available.
|
|
238
|
+
///
|
|
239
|
+
/// After a succesful count, the reader is rewound automatically
|
|
240
|
+
///
|
|
241
|
+
/// # Returns:
|
|
242
|
+
/// number of packets in the current file or, if multiple files given,
|
|
243
|
+
/// all of them.
|
|
237
244
|
pub fn count_packets(&mut self) -> usize {
|
|
238
245
|
let _ = self.rewind();
|
|
239
246
|
let mut nframes = 0usize;
|
|
@@ -313,11 +320,11 @@ impl TofPacketReader {
|
|
|
313
320
|
}
|
|
314
321
|
}
|
|
315
322
|
Ok(_) => {
|
|
316
|
-
self.cursor +=
|
|
323
|
+
self.cursor += 4;
|
|
317
324
|
}
|
|
318
325
|
}
|
|
319
326
|
let vec_data = buffer_psize.to_vec();
|
|
320
|
-
let size =
|
|
327
|
+
let size = parse_u32(&vec_data, &mut 0);
|
|
321
328
|
let mut temp_buffer = vec![0; size as usize];
|
|
322
329
|
match self.file_reader.read_exact(&mut temp_buffer) {
|
|
323
330
|
//match self.file_reader.seek(SeekFrom::Current(size as i64)) {
|
|
@@ -499,7 +506,15 @@ impl TofPacketReader {
|
|
|
499
506
|
Ok(_) => Ok(())
|
|
500
507
|
}
|
|
501
508
|
}
|
|
502
|
-
|
|
509
|
+
|
|
510
|
+
/// Run once over the entire file, skipping most of its content
|
|
511
|
+
/// but retrieve the number of packets available.
|
|
512
|
+
///
|
|
513
|
+
/// After a succesful count, the reader is rewound automatically
|
|
514
|
+
///
|
|
515
|
+
/// # Returns:
|
|
516
|
+
/// number of packets in the current file or, if multiple files given,
|
|
517
|
+
/// all of them.
|
|
503
518
|
#[pyo3(name="count_packets")]
|
|
504
519
|
fn count_packets_py(&mut self) -> usize {
|
|
505
520
|
self.count_packets()
|
|
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
|