MNeuEventLib 0.5.2__tar.gz → 0.6.0__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 (65) hide show
  1. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/Cargo.lock +70 -226
  2. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/Cargo.toml +3 -3
  3. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/MNeuEventLib/plotting.py +2 -2
  4. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/PKG-INFO +4 -1
  5. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/README.md +8 -0
  6. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/docs/source/how-to/filtering.ipynb +7 -7
  7. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/docs/source/tutorials/batch_processing.ipynb +85 -0
  8. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/pyproject.toml +3 -0
  9. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/src/batch/interface.rs +712 -74
  10. mneueventlib-0.6.0/src/data/frame_data.rs +29 -0
  11. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/src/data/mod.rs +1 -1
  12. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/src/data/nexus_data.rs +34 -34
  13. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/src/data/save/sanitise/nexus_data.rs +233 -90
  14. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/src/data/save/utils.rs +1 -1
  15. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/src/data/save/wimda.rs +120 -29
  16. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/src/filters/api.rs +111 -39
  17. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/src/interface.rs +21 -8
  18. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/src/stats.rs +316 -149
  19. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/src/test_utils.rs +3 -3
  20. mneueventlib-0.6.0/tests/conftest.py +164 -0
  21. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/tests/integration/test_mantid.py +4 -4
  22. mneueventlib-0.6.0/tests/system/test_batch_data.py +48 -0
  23. mneueventlib-0.6.0/tests/system/test_data_object.py +76 -0
  24. mneueventlib-0.6.0/tests/system/test_plotting.py +78 -0
  25. mneueventlib-0.5.2/src/data/frame_data.rs +0 -95
  26. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/.github/workflows/label_merge_conflicts.yml +0 -0
  27. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/.github/workflows/push.yml +0 -0
  28. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/.github/workflows/release.yml +0 -0
  29. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/.gitignore +0 -0
  30. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/.readthedocs.yaml +0 -0
  31. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/LICENSE +0 -0
  32. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/MNeuEventLib/__init__.py +0 -0
  33. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/MNeuEventLib/make_default.py +0 -0
  34. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/MNeuEventLib/test_helpers.py +0 -0
  35. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/bench.py +0 -0
  36. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/docs/Makefile +0 -0
  37. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/docs/make.bat +0 -0
  38. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/docs/source/_static/HIFI00195790.nxs +0 -0
  39. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/docs/source/_static/api/README.md +0 -0
  40. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/docs/source/api.rst +0 -0
  41. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/docs/source/conf.py +0 -0
  42. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/docs/source/how-to/create_plots.ipynb +0 -0
  43. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/docs/source/how-to/index.rst +0 -0
  44. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/docs/source/index.rst +0 -0
  45. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/docs/source/install.rst +0 -0
  46. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/docs/source/tutorials/getting_started.ipynb +0 -0
  47. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/docs/source/tutorials/index.rst +0 -0
  48. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/files/README.md +0 -0
  49. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/files/muon_ref.nxs +0 -0
  50. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/src/batch/functions.rs +0 -0
  51. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/src/batch/mod.rs +0 -0
  52. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/src/consts.rs +0 -0
  53. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/src/data/sample_logs.rs +0 -0
  54. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/src/data/save/instrument.rs +0 -0
  55. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/src/data/save/mod.rs +0 -0
  56. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/src/data/save/periods.rs +0 -0
  57. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/src/data/save/sample_logs.rs +0 -0
  58. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/src/data/save/sanitise/mod.rs +0 -0
  59. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/src/data/save/sanitise/utils.rs +0 -0
  60. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/src/filters/filtering.rs +0 -0
  61. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/src/filters/mod.rs +0 -0
  62. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/src/filters/weights.rs +0 -0
  63. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/src/lib.rs +0 -0
  64. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/src/utils.rs +0 -0
  65. {mneueventlib-0.5.2 → mneueventlib-0.6.0}/tests/test_data/HIFI00195790.nxs +0 -0
@@ -4,12 +4,12 @@ version = 4
4
4
 
5
5
  [[package]]
6
6
  name = "MNeuEventLib"
7
- version = "0.5.2"
7
+ version = "0.6.0"
8
8
  dependencies = [
9
9
  "anyhow",
10
- "chrono",
11
10
  "hdf5-metno",
12
11
  "hdf5-metno-sys",
12
+ "jiff",
13
13
  "ndarray",
14
14
  "numpy",
15
15
  "pyo3",
@@ -30,20 +30,11 @@ dependencies = [
30
30
  "memchr",
31
31
  ]
32
32
 
33
- [[package]]
34
- name = "android_system_properties"
35
- version = "0.1.6"
36
- source = "registry+https://github.com/rust-lang/crates.io-index"
37
- checksum = "ae221649c9976a6f6c56ae1facf410f3ddb33cc661c4b7b61020a912d4237fbc"
38
- dependencies = [
39
- "libc",
40
- ]
41
-
42
33
  [[package]]
43
34
  name = "anyhow"
44
- version = "1.0.104"
35
+ version = "1.0.105"
45
36
  source = "registry+https://github.com/rust-lang/crates.io-index"
46
- checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470"
37
+ checksum = "2cb931c189b85683d69a5cfad41d4d418671e1ac413dd209f3f2fc31e3cfd902"
47
38
 
48
39
  [[package]]
49
40
  name = "ascii"
@@ -63,12 +54,6 @@ version = "2.13.2"
63
54
  source = "registry+https://github.com/rust-lang/crates.io-index"
64
55
  checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
65
56
 
66
- [[package]]
67
- name = "bumpalo"
68
- version = "3.20.3"
69
- source = "registry+https://github.com/rust-lang/crates.io-index"
70
- checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
71
-
72
57
  [[package]]
73
58
  name = "bytecount"
74
59
  version = "0.6.9"
@@ -77,9 +62,9 @@ checksum = "175812e0be2bccb6abe50bb8d566126198344f707e304f45c648fd8f2cc0365e"
77
62
 
78
63
  [[package]]
79
64
  name = "cc"
80
- version = "1.11.1"
65
+ version = "1.11.3"
81
66
  source = "registry+https://github.com/rust-lang/crates.io-index"
82
- checksum = "4ff2a8126fff0f8c839080d619675a585e61720bb12d2baceae45769fd66f155"
67
+ checksum = "02f0e023adb368345ce0ca6cdfc0f24a06554468d0e8503e14a0841de79bfa69"
83
68
  dependencies = [
84
69
  "find-msvc-tools",
85
70
  "shlex",
@@ -91,19 +76,6 @@ version = "1.0.5"
91
76
  source = "registry+https://github.com/rust-lang/crates.io-index"
92
77
  checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
93
78
 
94
- [[package]]
95
- name = "chrono"
96
- version = "0.4.45"
97
- source = "registry+https://github.com/rust-lang/crates.io-index"
98
- checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327"
99
- dependencies = [
100
- "iana-time-zone",
101
- "js-sys",
102
- "num-traits",
103
- "wasm-bindgen",
104
- "windows-link",
105
- ]
106
-
107
79
  [[package]]
108
80
  name = "cmake"
109
81
  version = "0.1.58"
@@ -113,12 +85,6 @@ dependencies = [
113
85
  "cc",
114
86
  ]
115
87
 
116
- [[package]]
117
- name = "core-foundation-sys"
118
- version = "0.8.7"
119
- source = "registry+https://github.com/rust-lang/crates.io-index"
120
- checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
121
-
122
88
  [[package]]
123
89
  name = "crossbeam-deque"
124
90
  version = "0.8.8"
@@ -184,30 +150,6 @@ version = "1.0.7"
184
150
  source = "registry+https://github.com/rust-lang/crates.io-index"
185
151
  checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
186
152
 
187
- [[package]]
188
- name = "futures-core"
189
- version = "0.3.34"
190
- source = "registry+https://github.com/rust-lang/crates.io-index"
191
- checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e"
192
-
193
- [[package]]
194
- name = "futures-task"
195
- version = "0.3.34"
196
- source = "registry+https://github.com/rust-lang/crates.io-index"
197
- checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd"
198
-
199
- [[package]]
200
- name = "futures-util"
201
- version = "0.3.34"
202
- source = "registry+https://github.com/rust-lang/crates.io-index"
203
- checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc"
204
- dependencies = [
205
- "futures-core",
206
- "futures-task",
207
- "pin-project-lite",
208
- "slab",
209
- ]
210
-
211
153
  [[package]]
212
154
  name = "getrandom"
213
155
  version = "0.4.3"
@@ -221,9 +163,9 @@ dependencies = [
221
163
 
222
164
  [[package]]
223
165
  name = "hashbrown"
224
- version = "0.17.1"
166
+ version = "0.17.2"
225
167
  source = "registry+https://github.com/rust-lang/crates.io-index"
226
- checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
168
+ checksum = "735eaa21a6a5ffb2e84362faaeb90c05ba8e19797ca30428478cb6ea3a4921bc"
227
169
 
228
170
  [[package]]
229
171
  name = "hdf5-metno"
@@ -255,18 +197,18 @@ dependencies = [
255
197
 
256
198
  [[package]]
257
199
  name = "hdf5-metno-src"
258
- version = "0.10.4"
200
+ version = "0.10.5"
259
201
  source = "registry+https://github.com/rust-lang/crates.io-index"
260
- checksum = "69c883c565498492954e344c482f8622525e58c7a71100dd9498c4940da82885"
202
+ checksum = "d9736db9e811b0040eb2913748aee43f88da32944ff323f2f537758b369db38d"
261
203
  dependencies = [
262
204
  "cmake",
263
205
  ]
264
206
 
265
207
  [[package]]
266
208
  name = "hdf5-metno-sys"
267
- version = "0.12.5"
209
+ version = "0.12.3"
268
210
  source = "registry+https://github.com/rust-lang/crates.io-index"
269
- checksum = "5c25498a6b2db388939b973be69d09516ab5f198944dbe8487bfaf37def8c371"
211
+ checksum = "8139abe2218e47a40bdc7822a4365b620e23dce17e6b4735bbe6629410cdfedb"
270
212
  dependencies = [
271
213
  "hdf5-metno-src",
272
214
  "libc",
@@ -298,54 +240,71 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
298
240
  checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
299
241
 
300
242
  [[package]]
301
- name = "iana-time-zone"
302
- version = "0.1.65"
243
+ name = "indexmap"
244
+ version = "2.14.2"
245
+ source = "registry+https://github.com/rust-lang/crates.io-index"
246
+ checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855"
247
+ dependencies = [
248
+ "equivalent",
249
+ "hashbrown",
250
+ ]
251
+
252
+ [[package]]
253
+ name = "itoa"
254
+ version = "1.0.19"
303
255
  source = "registry+https://github.com/rust-lang/crates.io-index"
304
- checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470"
256
+ checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4"
257
+
258
+ [[package]]
259
+ name = "jiff"
260
+ version = "1.0.3"
261
+ source = "registry+https://github.com/rust-lang/crates.io-index"
262
+ checksum = "107f2e89536b6818514025f6787b0d94d819e54fe3b40365275fc753de485b3f"
305
263
  dependencies = [
306
- "android_system_properties",
307
- "core-foundation-sys",
308
- "iana-time-zone-haiku",
309
- "js-sys",
264
+ "jiff-core",
265
+ "jiff-static",
266
+ "jiff-tzdb-platform",
310
267
  "log",
311
- "wasm-bindgen",
312
- "windows-core",
268
+ "portable-atomic",
269
+ "portable-atomic-util",
270
+ "serde_core",
271
+ "windows-link",
313
272
  ]
314
273
 
315
274
  [[package]]
316
- name = "iana-time-zone-haiku"
317
- version = "0.1.2"
275
+ name = "jiff-core"
276
+ version = "1.0.2"
318
277
  source = "registry+https://github.com/rust-lang/crates.io-index"
319
- checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
278
+ checksum = "d44c923edf2bf456a982253f1a9ee1f6e89e421dffd0065d9b9a581da0def58f"
320
279
  dependencies = [
321
- "cc",
280
+ "log",
322
281
  ]
323
282
 
324
283
  [[package]]
325
- name = "indexmap"
326
- version = "2.14.2"
284
+ name = "jiff-static"
285
+ version = "1.0.3"
327
286
  source = "registry+https://github.com/rust-lang/crates.io-index"
328
- checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855"
287
+ checksum = "4996f71e569e3a3e32b925c28ef8f0027dc30bb1d594b33eeda409eea185f5c8"
329
288
  dependencies = [
330
- "equivalent",
331
- "hashbrown",
289
+ "jiff-core",
290
+ "proc-macro2",
291
+ "quote",
292
+ "syn 3.0.10",
332
293
  ]
333
294
 
334
295
  [[package]]
335
- name = "itoa"
336
- version = "1.0.19"
296
+ name = "jiff-tzdb"
297
+ version = "1.0.0"
337
298
  source = "registry+https://github.com/rust-lang/crates.io-index"
338
- checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4"
299
+ checksum = "12e71a1b68a875a44a33bb7a1dd84392cb77145a3367a552a3cfe6a4f5cf3afc"
339
300
 
340
301
  [[package]]
341
- name = "js-sys"
342
- version = "0.3.107"
302
+ name = "jiff-tzdb-platform"
303
+ version = "1.0.0"
343
304
  source = "registry+https://github.com/rust-lang/crates.io-index"
344
- checksum = "8dc09d2154098bbf4ef54eab6b117a3c24cbbffe94046b16ee6d6d4510584d3a"
305
+ checksum = "dc65b284afcfa8f6cf189c7274c805505314a7ab975c60e1f548bff56525420e"
345
306
  dependencies = [
346
- "cfg-if",
347
- "futures-util",
348
- "wasm-bindgen",
307
+ "jiff-tzdb",
349
308
  ]
350
309
 
351
310
  [[package]]
@@ -505,12 +464,6 @@ version = "0.2.3"
505
464
  source = "registry+https://github.com/rust-lang/crates.io-index"
506
465
  checksum = "2ee67f1008b1ba2321834326597b8e186293b049a023cdef258527550b9935b4"
507
466
 
508
- [[package]]
509
- name = "pin-project-lite"
510
- version = "0.2.17"
511
- source = "registry+https://github.com/rust-lang/crates.io-index"
512
- checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
513
-
514
467
  [[package]]
515
468
  name = "pkg-config"
516
469
  version = "0.3.34"
@@ -683,9 +636,9 @@ dependencies = [
683
636
 
684
637
  [[package]]
685
638
  name = "regex"
686
- version = "1.13.1"
639
+ version = "1.13.2"
687
640
  source = "registry+https://github.com/rust-lang/crates.io-index"
688
- checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
641
+ checksum = "9807af0e638c12e753aa1b4e601791bf2a8f71274023c8bbeec12fc149950857"
689
642
  dependencies = [
690
643
  "aho-corasick",
691
644
  "memchr",
@@ -695,9 +648,9 @@ dependencies = [
695
648
 
696
649
  [[package]]
697
650
  name = "regex-automata"
698
- version = "0.4.18"
651
+ version = "0.4.19"
699
652
  source = "registry+https://github.com/rust-lang/crates.io-index"
700
- checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
653
+ checksum = "41d60ef07df457506a0a1a2073112eb4aae5733dbd2813c3da77d1b0fd441158"
701
654
  dependencies = [
702
655
  "aho-corasick",
703
656
  "memchr",
@@ -706,9 +659,9 @@ dependencies = [
706
659
 
707
660
  [[package]]
708
661
  name = "regex-syntax"
709
- version = "0.8.11"
662
+ version = "0.8.12"
710
663
  source = "registry+https://github.com/rust-lang/crates.io-index"
711
- checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
664
+ checksum = "d902046e6a28a1e4c3cab97258a0ce11e994903f01c2d97a9447a0b3df85f4f6"
712
665
 
713
666
  [[package]]
714
667
  name = "rustc-hash"
@@ -729,12 +682,6 @@ dependencies = [
729
682
  "windows-sys",
730
683
  ]
731
684
 
732
- [[package]]
733
- name = "rustversion"
734
- version = "1.0.23"
735
- source = "registry+https://github.com/rust-lang/crates.io-index"
736
- checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
737
-
738
685
  [[package]]
739
686
  name = "scopeguard"
740
687
  version = "1.2.0"
@@ -796,17 +743,11 @@ version = "2.0.1"
796
743
  source = "registry+https://github.com/rust-lang/crates.io-index"
797
744
  checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
798
745
 
799
- [[package]]
800
- name = "slab"
801
- version = "0.4.12"
802
- source = "registry+https://github.com/rust-lang/crates.io-index"
803
- checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
804
-
805
746
  [[package]]
806
747
  name = "smallvec"
807
- version = "1.16.5"
748
+ version = "1.16.6"
808
749
  source = "registry+https://github.com/rust-lang/crates.io-index"
809
- checksum = "149309498a5f7334b12ddae0cad8aba81ce785fe91755068867e017cf98fee46"
750
+ checksum = "3244542535d5de959d90ec55d1b5ff0fd2bb7b1310223907d5f11932847f7b59"
810
751
 
811
752
  [[package]]
812
753
  name = "syn"
@@ -856,9 +797,9 @@ dependencies = [
856
797
 
857
798
  [[package]]
858
799
  name = "target-lexicon"
859
- version = "0.13.5"
800
+ version = "0.13.6"
860
801
  source = "registry+https://github.com/rust-lang/crates.io-index"
861
- checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
802
+ checksum = "8c447be3a2abfa84b2d91680c56600bd6b2873866de27b36ec911be705e291da"
862
803
 
863
804
  [[package]]
864
805
  name = "tempfile"
@@ -893,9 +834,9 @@ dependencies = [
893
834
 
894
835
  [[package]]
895
836
  name = "toml_edit"
896
- version = "0.25.19+spec-1.1.0"
837
+ version = "0.25.21+spec-1.1.0"
897
838
  source = "registry+https://github.com/rust-lang/crates.io-index"
898
- checksum = "dd43688c4858d7264ae1cf9a9f874a67c3feb74a883b1cd7bebd6a4ea8307218"
839
+ checksum = "88497dab46de5bf343ec66b05c251e48c6213f3e9170c70a70a823f7abe886a4"
899
840
  dependencies = [
900
841
  "indexmap",
901
842
  "toml_datetime",
@@ -905,9 +846,9 @@ dependencies = [
905
846
 
906
847
  [[package]]
907
848
  name = "toml_parser"
908
- version = "1.1.5+spec-1.1.0"
849
+ version = "1.1.7+spec-1.1.0"
909
850
  source = "registry+https://github.com/rust-lang/crates.io-index"
910
- checksum = "baa693a8032d7e1cada7d0041e96126df243179ff061456783ac7f12bda4744c"
851
+ checksum = "0bb28d6e049a9766c3bd91a8326e6179f5b132dec87906bb97018ef7a2f3431a"
911
852
  dependencies = [
912
853
  "winnow",
913
854
  ]
@@ -924,109 +865,12 @@ version = "0.2.3"
924
865
  source = "registry+https://github.com/rust-lang/crates.io-index"
925
866
  checksum = "ca718471876992059f251e33aafc334346ada08042b7661dd1fe313a9bced557"
926
867
 
927
- [[package]]
928
- name = "wasm-bindgen"
929
- version = "0.2.130"
930
- source = "registry+https://github.com/rust-lang/crates.io-index"
931
- checksum = "a0181c14ddd6c7b8b0b0132a5f1ea2f32be0d893cd3ea97b6e3b28886b8a3d1c"
932
- dependencies = [
933
- "cfg-if",
934
- "rustversion",
935
- "wasm-bindgen-macro",
936
- "wasm-bindgen-shared",
937
- ]
938
-
939
- [[package]]
940
- name = "wasm-bindgen-macro"
941
- version = "0.2.130"
942
- source = "registry+https://github.com/rust-lang/crates.io-index"
943
- checksum = "6e931a02a39abdbf66966fc35902b5ed58344750a70885bed4ebb3d8eaf28ed9"
944
- dependencies = [
945
- "quote",
946
- "wasm-bindgen-macro-support",
947
- ]
948
-
949
- [[package]]
950
- name = "wasm-bindgen-macro-support"
951
- version = "0.2.130"
952
- source = "registry+https://github.com/rust-lang/crates.io-index"
953
- checksum = "2ca4b54280e455bd831e33a6b8e734baf432fe63fbc35c42ac14ce67a043a53a"
954
- dependencies = [
955
- "bumpalo",
956
- "proc-macro2",
957
- "quote",
958
- "syn 3.0.10",
959
- "wasm-bindgen-shared",
960
- ]
961
-
962
- [[package]]
963
- name = "wasm-bindgen-shared"
964
- version = "0.2.130"
965
- source = "registry+https://github.com/rust-lang/crates.io-index"
966
- checksum = "3b1f9c3798725016c6ee5f2f57869ec0831e8bbc0ab0310a86e787e97f41389e"
967
- dependencies = [
968
- "unicode-ident",
969
- ]
970
-
971
- [[package]]
972
- name = "windows-core"
973
- version = "0.62.2"
974
- source = "registry+https://github.com/rust-lang/crates.io-index"
975
- checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"
976
- dependencies = [
977
- "windows-implement",
978
- "windows-interface",
979
- "windows-link",
980
- "windows-result",
981
- "windows-strings",
982
- ]
983
-
984
- [[package]]
985
- name = "windows-implement"
986
- version = "0.60.2"
987
- source = "registry+https://github.com/rust-lang/crates.io-index"
988
- checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"
989
- dependencies = [
990
- "proc-macro2",
991
- "quote",
992
- "syn 2.0.119",
993
- ]
994
-
995
- [[package]]
996
- name = "windows-interface"
997
- version = "0.59.3"
998
- source = "registry+https://github.com/rust-lang/crates.io-index"
999
- checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"
1000
- dependencies = [
1001
- "proc-macro2",
1002
- "quote",
1003
- "syn 2.0.119",
1004
- ]
1005
-
1006
868
  [[package]]
1007
869
  name = "windows-link"
1008
870
  version = "0.2.1"
1009
871
  source = "registry+https://github.com/rust-lang/crates.io-index"
1010
872
  checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
1011
873
 
1012
- [[package]]
1013
- name = "windows-result"
1014
- version = "0.4.1"
1015
- source = "registry+https://github.com/rust-lang/crates.io-index"
1016
- checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"
1017
- dependencies = [
1018
- "windows-link",
1019
- ]
1020
-
1021
- [[package]]
1022
- name = "windows-strings"
1023
- version = "0.5.1"
1024
- source = "registry+https://github.com/rust-lang/crates.io-index"
1025
- checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"
1026
- dependencies = [
1027
- "windows-link",
1028
- ]
1029
-
1030
874
  [[package]]
1031
875
  name = "windows-sys"
1032
876
  version = "0.61.2"
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "MNeuEventLib"
3
- version = "0.5.2"
3
+ version = "0.6.0"
4
4
  edition = "2021"
5
5
  license = "BSD-3-Clause"
6
6
  readme = "README.md"
@@ -12,7 +12,7 @@ crate-type = ["cdylib"]
12
12
 
13
13
  [dependencies]
14
14
  hdf5 = { package = "hdf5-metno", version = "0.14.1", features = ["static"] }
15
- hdf5-metno-sys = "0.12.3"
15
+ hdf5-metno-sys = "=0.12.3"
16
16
  ndarray = "0.17.2"
17
17
  rayon = "1.12.0"
18
18
  anyhow = "1.0.102"
@@ -20,9 +20,9 @@ pyo3 = { version = "0.28.0", features = ["anyhow"] }
20
20
  numpy = "0.28.0"
21
21
  serde = { version = "1.0.228", features = ["derive"] }
22
22
  serde_json = "1.0.150"
23
- chrono = { version = "0.4.45", features = ["std"] }
24
23
  tabled = "0.21.0"
25
24
  seq-macro = "0.3"
25
+ jiff = "1"
26
26
 
27
27
  [dev-dependencies]
28
28
  tempfile = "3.27.0"
@@ -57,8 +57,8 @@ def plot_amplitudes(data: Data, max_height: Optional[float] = None, n_bins: int
57
57
  The detector to plot amplitudes for.
58
58
  If not provided, plots for all detectors.
59
59
  """
60
- # get_amp_histogram returns the histogram and the max height used
61
- hist, max_h = data.dataset.get_amp_histogram(max_height, n_bins, detector)
60
+ # get_ampl_histogram returns the histogram and the max height used
61
+ hist, max_h = data.dataset.get_ampl_histogram(max_height, n_bins, detector)
62
62
 
63
63
  steps = np.linspace(0, max_h, len(hist)+1)
64
64
  fig, ax = plt.subplots()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: MNeuEventLib
3
- Version: 0.5.2
3
+ Version: 0.6.0
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -8,7 +8,10 @@ Requires-Dist: numpy
8
8
  Requires-Dist: matplotlib
9
9
  Requires-Dist: ipykernel ; extra == 'docs'
10
10
  Requires-Dist: nbsphinx ; extra == 'docs'
11
+ Requires-Dist: pytest ; extra == 'test'
12
+ Requires-Dist: h5py ; extra == 'test'
11
13
  Provides-Extra: docs
14
+ Provides-Extra: test
12
15
  License-File: LICENSE
13
16
  Summary: Event data filtering library for ISIS Neutron and Muon Source.
14
17
  License-Expression: BSD-3-Clause
@@ -26,6 +26,14 @@ To run the tests:
26
26
  cargo test
27
27
  ```
28
28
 
29
+ There is also a Python test suite in `tests/`, which drives the public API
30
+ end to end. It needs the extension module to be built, and the test
31
+ dependencies installed, before it can run:
32
+ ```
33
+ maturin develop --extras test
34
+ pytest
35
+ ```
36
+
29
37
  To lint:
30
38
  ```
31
39
  cargo clippy --all-targets --all-features -- -D warnings
@@ -263,9 +263,9 @@
263
263
  "source": [
264
264
  "## Amplitude filtering\n",
265
265
  "\n",
266
- "The data can also be filtered according to minimum amplitude filters. These can be per-detector or set as a baseline across all detectors. To set an amplitude filter for one detector use `set_amp`, which has two arguments:\n",
267
- "- `detector`: the detector to set the amplitude for.\n",
268
- "- `amp`: The minimum allowed amplitude."
266
+ "The data can also be filtered according to minimum amplitude filters. These can be per-detector or set as a baseline across all detectors. To set an amplitude filter for one detector use `set_ampl`, which has two arguments:\n",
267
+ "- `detector`: the detector to set the amplitude for. Note detectors are indexed starting at zero.\n",
268
+ "- `ampl`: The minimum allowed amplitude."
269
269
  ]
270
270
  },
271
271
  {
@@ -277,7 +277,7 @@
277
277
  "source": [
278
278
  "data = Data(\"../_static/HIFI00195790.nxs\", n_spec=64)\n",
279
279
  "\n",
280
- "data.set_amp(6, 2500)"
280
+ "data.set_ampl(6, 2500)"
281
281
  ]
282
282
  },
283
283
  {
@@ -285,7 +285,7 @@
285
285
  "id": "bfcf8c70-2e1c-4aa5-80c9-6977fcd2d710",
286
286
  "metadata": {},
287
287
  "source": [
288
- "To set a baseline, use `set_amps_baseline`, which just takes the minimum amplitude baseline as an argument."
288
+ "To set a baseline, use `set_ampl_baseline`, which just takes the minimum amplitude baseline as an argument."
289
289
  ]
290
290
  },
291
291
  {
@@ -295,7 +295,7 @@
295
295
  "metadata": {},
296
296
  "outputs": [],
297
297
  "source": [
298
- "data.set_amps_baseline(1500)"
298
+ "data.set_ampl_baseline(1500)"
299
299
  ]
300
300
  },
301
301
  {
@@ -330,4 +330,4 @@
330
330
  },
331
331
  "nbformat": 4,
332
332
  "nbformat_minor": 5
333
- }
333
+ }