gondola 0.12.4__tar.gz → 0.12.6__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 (115) hide show
  1. {gondola-0.12.4 → gondola-0.12.6}/Cargo.lock +22 -2
  2. {gondola-0.12.4 → gondola-0.12.6}/Cargo.toml +13 -7
  3. {gondola-0.12.4 → gondola-0.12.6}/PKG-INFO +3 -1
  4. gondola-0.12.6/build.sh +2 -0
  5. gondola-0.12.6/liftof-config-decompressed.toml +1161 -0
  6. gondola-0.12.6/liftof-config-test-changed.toml +1161 -0
  7. gondola-0.12.6/liftof-config.diff +8 -0
  8. {gondola-0.12.4 → gondola-0.12.6}/pyproject.toml +6 -4
  9. {gondola-0.12.4 → gondola-0.12.6}/python/gondola/__init__.py +1 -3
  10. {gondola-0.12.4 → gondola-0.12.6}/python/gondola/calibration.py +2 -0
  11. {gondola-0.12.4 → gondola-0.12.6}/python/gondola/db.py +35 -5
  12. gondola-0.12.6/python/gondola/events.py +38 -0
  13. {gondola-0.12.4 → gondola-0.12.6}/python/gondola/gaps_flight.db +0 -0
  14. {gondola-0.12.4 → gondola-0.12.6}/python/gondola/io/__init__.py +41 -0
  15. gondola-0.12.6/python/gondola/io/streamers.py +45 -0
  16. {gondola-0.12.4 → gondola-0.12.6}/python/gondola/tof/__init__.py +33 -11
  17. gondola-0.12.6/python/gondola/tof/analysis.py +746 -0
  18. gondola-0.12.6/python/gondola/tracker/__init__.py +8 -0
  19. {gondola-0.12.4 → gondola-0.12.6}/src/calibration/tof.rs +20 -5
  20. {gondola-0.12.4 → gondola-0.12.6}/src/database/schema.rs +13 -0
  21. {gondola-0.12.4 → gondola-0.12.6}/src/database.rs +295 -1
  22. {gondola-0.12.4 → gondola-0.12.6}/src/errors.rs +1 -1
  23. {gondola-0.12.4 → gondola-0.12.6}/src/events/rb_event.rs +19 -61
  24. {gondola-0.12.4 → gondola-0.12.6}/src/events/rb_waveform.rs +15 -10
  25. {gondola-0.12.4 → gondola-0.12.6}/src/events/telemetry_event.rs +3 -0
  26. {gondola-0.12.4 → gondola-0.12.6}/src/events/tof_event.rs +207 -47
  27. {gondola-0.12.4 → gondola-0.12.6}/src/events/tof_hit.rs +60 -238
  28. {gondola-0.12.4 → gondola-0.12.6}/src/events.rs +9 -2
  29. {gondola-0.12.4 → gondola-0.12.6}/src/io/caraspace/frame.rs +1 -1
  30. {gondola-0.12.4 → gondola-0.12.6}/src/io/caraspace/writer.rs +3 -3
  31. {gondola-0.12.4 → gondola-0.12.6}/src/io/ipbus.rs +5 -2
  32. {gondola-0.12.4 → gondola-0.12.6}/src/io/serialization.rs +17 -1
  33. {gondola-0.12.4 → gondola-0.12.6}/src/io/streamers.rs +10 -10
  34. {gondola-0.12.4 → gondola-0.12.6}/src/io/telemetry_reader.rs +43 -2
  35. {gondola-0.12.4 → gondola-0.12.6}/src/io/tof_reader.rs +20 -0
  36. {gondola-0.12.4 → gondola-0.12.6}/src/io/tof_writer.rs +20 -2
  37. {gondola-0.12.4 → gondola-0.12.6}/src/io.rs +147 -4
  38. {gondola-0.12.4 → gondola-0.12.6}/src/lib.rs +126 -11
  39. {gondola-0.12.4 → gondola-0.12.6}/src/monitoring/heartbeats/data_sink_hb.rs +5 -1
  40. gondola-0.12.6/src/monitoring/heartbeats/event_builder_hb.rs +616 -0
  41. {gondola-0.12.4 → gondola-0.12.6}/src/monitoring/heartbeats/master_trigger_hb.rs +4 -1
  42. {gondola-0.12.4 → gondola-0.12.6}/src/monitoring/mtb_moni_data.rs +5 -5
  43. {gondola-0.12.4 → gondola-0.12.6}/src/monitoring/rb_moni_data.rs +37 -3
  44. {gondola-0.12.4 → gondola-0.12.6}/src/monitoring.rs +103 -9
  45. gondola-0.12.6/src/packets/pdu_packet.rs +450 -0
  46. {gondola-0.12.4 → gondola-0.12.6}/src/packets/telemetry_packet.rs +20 -4
  47. {gondola-0.12.4 → gondola-0.12.6}/src/packets/telemetry_packet_type.rs +11 -1
  48. {gondola-0.12.4 → gondola-0.12.6}/src/packets/tof_packet.rs +20 -1
  49. gondola-0.12.6/src/packets/tof_packet_type.rs +89 -0
  50. {gondola-0.12.4 → gondola-0.12.6}/src/packets.rs +6 -0
  51. {gondola-0.12.4 → gondola-0.12.6}/src/prelude.rs +4 -0
  52. {gondola-0.12.4 → gondola-0.12.6}/src/python.rs +2 -1
  53. gondola-0.12.6/src/tof/analysis.rs +1250 -0
  54. {gondola-0.12.4 → gondola-0.12.6}/src/tof/analysis_engine.rs +1 -0
  55. {gondola-0.12.4 → gondola-0.12.6}/src/tof/commands.rs +108 -37
  56. {gondola-0.12.4 → gondola-0.12.6}/src/tof/config.rs +109 -93
  57. {gondola-0.12.4 → gondola-0.12.6}/src/tof/cuts.rs +1 -1
  58. {gondola-0.12.4 → gondola-0.12.6}/src/tof/detector_status.rs +1 -1
  59. {gondola-0.12.4 → gondola-0.12.6}/src/tof/master_trigger/registers.rs +10 -0
  60. {gondola-0.12.4 → gondola-0.12.6}/src/tof/master_trigger.rs +58 -11
  61. gondola-0.12.6/src/tof/panic.rs +91 -0
  62. {gondola-0.12.4 → gondola-0.12.6}/src/tof/settings.rs +329 -139
  63. {gondola-0.12.4 → gondola-0.12.6}/src/tof/thread_control.rs +3 -0
  64. {gondola-0.12.4 → gondola-0.12.6}/src/tof.rs +4 -1
  65. gondola-0.12.4/python/gondola/tof/analysis.py +0 -641
  66. gondola-0.12.4/python/gondola/tracker/__init__.py +0 -22
  67. gondola-0.12.4/src/monitoring/heartbeats/event_builder_hb.rs +0 -420
  68. gondola-0.12.4/src/packets/tof_packet_type.rs +0 -248
  69. gondola-0.12.4/src/tof/analysis.rs +0 -36
  70. {gondola-0.12.4 → gondola-0.12.6}/.gitignore +0 -0
  71. {gondola-0.12.4 → gondola-0.12.6}/README.md +0 -0
  72. {gondola-0.12.4 → gondola-0.12.6}/alert-manifest-test.toml +0 -0
  73. {gondola-0.12.4 → gondola-0.12.6}/benches/bench.rs +0 -0
  74. {gondola-0.12.4 → gondola-0.12.6}/diesel.toml +0 -0
  75. {gondola-0.12.4 → gondola-0.12.6}/publish_to_bluejay.sh +0 -0
  76. {gondola-0.12.4 → gondola-0.12.6}/python/gondola/reconstruction/__init__.py +0 -0
  77. {gondola-0.12.4 → gondola-0.12.6}/python/gondola/tracker/analysis.py +0 -0
  78. {gondola-0.12.4 → gondola-0.12.6}/python/gondola/visual/__init__.py +0 -0
  79. {gondola-0.12.4 → gondola-0.12.6}/python/gondola/visual/tof.py +0 -0
  80. {gondola-0.12.4 → gondola-0.12.6}/python/gondola/visual/tracker.py +0 -0
  81. {gondola-0.12.4 → gondola-0.12.6}/src/calibration/tracker.rs +0 -0
  82. {gondola-0.12.4 → gondola-0.12.6}/src/calibration.rs +0 -0
  83. {gondola-0.12.4 → gondola-0.12.6}/src/constants.rs +0 -0
  84. {gondola-0.12.4 → gondola-0.12.6}/src/events/rb_event_header.rs +0 -0
  85. {gondola-0.12.4 → gondola-0.12.6}/src/events/tracker_hit.rs +0 -0
  86. {gondola-0.12.4 → gondola-0.12.6}/src/io/caraspace/reader.rs +0 -0
  87. {gondola-0.12.4 → gondola-0.12.6}/src/io/caraspace/socket_reader.rs +0 -0
  88. {gondola-0.12.4 → gondola-0.12.6}/src/io/caraspace.rs +0 -0
  89. {gondola-0.12.4 → gondola-0.12.6}/src/io/data_source.rs +0 -0
  90. {gondola-0.12.4 → gondola-0.12.6}/src/io/parsers.rs +0 -0
  91. {gondola-0.12.4 → gondola-0.12.6}/src/io/root_reader.rs +0 -0
  92. {gondola-0.12.4 → gondola-0.12.6}/src/monitoring/cpu_moni_data.rs +0 -0
  93. {gondola-0.12.4 → gondola-0.12.6}/src/monitoring/heartbeats.rs +0 -0
  94. {gondola-0.12.4 → gondola-0.12.6}/src/monitoring/ltb_moni_data.rs +0 -0
  95. {gondola-0.12.4 → gondola-0.12.6}/src/monitoring/pa_moni_data.rs +0 -0
  96. {gondola-0.12.4 → gondola-0.12.6}/src/monitoring/pb_moni_data.rs +0 -0
  97. {gondola-0.12.4 → gondola-0.12.6}/src/monitoring/run_statistics.rs +0 -0
  98. {gondola-0.12.4 → gondola-0.12.6}/src/packets/bfsw_ack_packet.rs +0 -0
  99. {gondola-0.12.4 → gondola-0.12.6}/src/packets/gps_packet.rs +0 -0
  100. {gondola-0.12.4 → gondola-0.12.6}/src/packets/magnetometer.rs +0 -0
  101. {gondola-0.12.4 → gondola-0.12.6}/src/packets/telemetry_packet_header.rs +0 -0
  102. {gondola-0.12.4 → gondola-0.12.6}/src/packets/tracker.rs +0 -0
  103. {gondola-0.12.4 → gondola-0.12.6}/src/packets/tracker_header.rs +0 -0
  104. {gondola-0.12.4 → gondola-0.12.6}/src/random.rs +0 -0
  105. {gondola-0.12.4 → gondola-0.12.6}/src/stats.rs +0 -0
  106. {gondola-0.12.4 → gondola-0.12.6}/src/tof/alerts.rs +0 -0
  107. {gondola-0.12.4 → gondola-0.12.6}/src/tof/algorithms.rs +0 -0
  108. {gondola-0.12.4 → gondola-0.12.6}/src/tof/master_trigger/control.rs +0 -0
  109. {gondola-0.12.4 → gondola-0.12.6}/src/tof/rb_paddle_id.rs +0 -0
  110. {gondola-0.12.4 → gondola-0.12.6}/src/tof/signal_handler.rs +0 -0
  111. {gondola-0.12.4 → gondola-0.12.6}/src/tof/tof_response.rs +0 -0
  112. {gondola-0.12.4 → gondola-0.12.6}/src/tracker/strips.rs +0 -0
  113. {gondola-0.12.4 → gondola-0.12.6}/src/tracker.rs +0 -0
  114. {gondola-0.12.4 → gondola-0.12.6}/src/version.rs +0 -0
  115. {gondola-0.12.4 → gondola-0.12.6}/tests/test.rs +0 -0
@@ -911,6 +911,15 @@ dependencies = [
911
911
  "syn 2.0.99",
912
912
  ]
913
913
 
914
+ [[package]]
915
+ name = "diffy"
916
+ version = "0.4.2"
917
+ source = "registry+https://github.com/rust-lang/crates.io-index"
918
+ checksum = "b545b8c50194bdd008283985ab0b31dba153cfd5b3066a92770634fbc0d7d291"
919
+ dependencies = [
920
+ "nu-ansi-term",
921
+ ]
922
+
914
923
  [[package]]
915
924
  name = "digest"
916
925
  version = "0.10.7"
@@ -1352,7 +1361,7 @@ checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2"
1352
1361
 
1353
1362
  [[package]]
1354
1363
  name = "gondola-core"
1355
- version = "0.12.4"
1364
+ version = "0.12.6"
1356
1365
  dependencies = [
1357
1366
  "cfg-if 1.0.0",
1358
1367
  "chrono",
@@ -1362,7 +1371,9 @@ dependencies = [
1362
1371
  "criterion",
1363
1372
  "crossbeam-channel",
1364
1373
  "diesel",
1374
+ "diffy",
1365
1375
  "env_logger 0.10.2",
1376
+ "flate2",
1366
1377
  "glob 0.3.2",
1367
1378
  "half",
1368
1379
  "indicatif",
@@ -2433,6 +2444,15 @@ dependencies = [
2433
2444
  "winapi 0.3.9",
2434
2445
  ]
2435
2446
 
2447
+ [[package]]
2448
+ name = "nu-ansi-term"
2449
+ version = "0.50.3"
2450
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2451
+ checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
2452
+ dependencies = [
2453
+ "windows-sys 0.59.0",
2454
+ ]
2455
+
2436
2456
  [[package]]
2437
2457
  name = "num"
2438
2458
  version = "0.2.1"
@@ -4813,7 +4833,7 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
4813
4833
  [[package]]
4814
4834
  name = "tof-control"
4815
4835
  version = "0.9.5"
4816
- source = "git+https://github.com/GAPS-Collab/tof-control.git?branch=minimal#23ab243acf48c4c71a994964dee0b612b8cb6132"
4836
+ source = "git+https://github.com/GAPS-Collab/tof-control.git?rev=23ab243acf48c4c71a994964dee0b612b8cb6132#23ab243acf48c4c71a994964dee0b612b8cb6132"
4817
4837
  dependencies = [
4818
4838
  "bindgen",
4819
4839
  "cc",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "gondola-core"
3
- version = "0.12.4"
3
+ version = "0.12.6"
4
4
  edition = "2024"
5
5
  readme = "README.md"
6
6
 
@@ -37,18 +37,14 @@ tofcontrol = ["tof-control"]
37
37
  advanced-algorithms = ["smoothed_z_score"]
38
38
  # build a python library
39
39
  pybindings = ["pyo3","pyo3-log","numpy", "serde-pickle", "polars", "pyo3-polars"]
40
- experimental = []
41
40
  # experimental, might go away. Attempt to include SimpleDet data
42
41
  root = ["oxyroot", "root-io"]
43
42
  # extra features to access TOF components directly, e.g. MTB. THis
44
43
  # will be required for the build of liftof
45
44
  tof-liftof = ["signal-hook"]
45
+ # define the default features for easy testing
46
+ default = ["random", "database", "tof-liftof"]
46
47
 
47
- [dependencies.tof-control]
48
- version = "0.9"
49
- optional = true
50
- git = "https://github.com/GAPS-Collab/tof-control.git"
51
- branch = "minimal"
52
48
 
53
49
  [dependencies.pyo3]
54
50
  version = "0.25"
@@ -71,6 +67,13 @@ optional = true
71
67
  version = "0.1"
72
68
  optional = true
73
69
 
70
+ [dependencies.tof-control]
71
+ version = "0.9.5"
72
+ optional = true
73
+ git = "https://github.com/GAPS-Collab/tof-control.git"
74
+ #branch = "minimal"
75
+ rev = "23ab243acf48c4c71a994964dee0b612b8cb6132"
76
+ #rev = "5f63d530fd293cdceede6383ac5b644bbe3deb30"
74
77
 
75
78
  [dev-dependencies]
76
79
  criterion = "0.4"
@@ -78,6 +81,8 @@ criterion = "0.4"
78
81
  quickcheck = "1"
79
82
 
80
83
  [dependencies]
84
+ #similar = "2"
85
+ diffy = "0.4"
81
86
  comfy-table = "7.1"
82
87
  zmq = "0.10"
83
88
  signal-hook = { version = "0.3", optional=true}
@@ -105,6 +110,7 @@ ureq = "2.12" # FIXME - make this a feature
105
110
  polars = { version = "0.51", features = ["lazy"], optional = true }
106
111
  pyo3-polars = { version = "0.24", optional = true }
107
112
  env_logger = "0.10"
113
+ flate2 = "1.1"
108
114
 
109
115
  # for the database - in case we want to use postgres,
110
116
  # the feature needs to be added here, however, this would
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gondola
3
- Version: 0.12.4
3
+ Version: 0.12.6
4
4
  Requires-Dist: tqdm>=4.0
5
5
  Requires-Dist: numpy>=2.3
6
6
  Requires-Dist: matplotlib>=3.10
@@ -11,6 +11,8 @@ Requires-Dist: loguru>=0.7
11
11
  Requires-Dist: vtk>=9
12
12
  Requires-Dist: iminuit>=2
13
13
  Requires-Dist: polars>=1.33
14
+ Requires-Dist: pyzmq>=27
15
+ Requires-Dist: twine>=6.2.0
14
16
  Summary: GAPS Online and Offline Analysis software
15
17
  Author-email: "J.A.Stoessl, G.Tytus" <stoessl@hawaii.edu>
16
18
  License: GPLV3
@@ -0,0 +1,2 @@
1
+ docker run --rm -v $(pwd):/io ghcr.io/pyo3/maturin build --release
2
+ twine upload target/wheels/gondola-0.11.24-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl