bilby-rust 0.1.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.
- bilby_rust-0.1.0/.cargo/config.toml +11 -0
- bilby_rust-0.1.0/Cargo.lock +525 -0
- bilby_rust-0.1.0/Cargo.toml +21 -0
- bilby_rust-0.1.0/PKG-INFO +55 -0
- bilby_rust-0.1.0/README.md +38 -0
- bilby_rust-0.1.0/examples/comparison_test.py +80 -0
- bilby_rust-0.1.0/examples/profile.py +113 -0
- bilby_rust-0.1.0/examples/utils.py +65 -0
- bilby_rust-0.1.0/pyproject.toml +22 -0
- bilby_rust-0.1.0/src/geometry/antenna.rs +328 -0
- bilby_rust-0.1.0/src/geometry/polarization.rs +307 -0
- bilby_rust-0.1.0/src/geometry/response.rs +144 -0
- bilby_rust-0.1.0/src/geometry/rotation.rs +144 -0
- bilby_rust-0.1.0/src/geometry/three.rs +526 -0
- bilby_rust-0.1.0/src/geometry/util.rs +45 -0
- bilby_rust-0.1.0/src/geometry.rs +7 -0
- bilby_rust-0.1.0/src/lib.rs +90 -0
- bilby_rust-0.1.0/src/time.rs +209 -0
|
@@ -0,0 +1,525 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 3
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "android-tzdata"
|
|
7
|
+
version = "0.1.1"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "android_system_properties"
|
|
13
|
+
version = "0.1.5"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"
|
|
16
|
+
dependencies = [
|
|
17
|
+
"libc",
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
[[package]]
|
|
21
|
+
name = "autocfg"
|
|
22
|
+
version = "1.3.0"
|
|
23
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
24
|
+
checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0"
|
|
25
|
+
|
|
26
|
+
[[package]]
|
|
27
|
+
name = "bilby_rust"
|
|
28
|
+
version = "0.1.0"
|
|
29
|
+
dependencies = [
|
|
30
|
+
"chrono",
|
|
31
|
+
"num-complex",
|
|
32
|
+
"numpy",
|
|
33
|
+
"pyo3",
|
|
34
|
+
]
|
|
35
|
+
|
|
36
|
+
[[package]]
|
|
37
|
+
name = "bitflags"
|
|
38
|
+
version = "2.6.0"
|
|
39
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
40
|
+
checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
|
|
41
|
+
|
|
42
|
+
[[package]]
|
|
43
|
+
name = "bumpalo"
|
|
44
|
+
version = "3.16.0"
|
|
45
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
46
|
+
checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c"
|
|
47
|
+
|
|
48
|
+
[[package]]
|
|
49
|
+
name = "cc"
|
|
50
|
+
version = "1.1.5"
|
|
51
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
52
|
+
checksum = "324c74f2155653c90b04f25b2a47a8a631360cb908f92a772695f430c7e31052"
|
|
53
|
+
|
|
54
|
+
[[package]]
|
|
55
|
+
name = "cfg-if"
|
|
56
|
+
version = "1.0.0"
|
|
57
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
58
|
+
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
|
59
|
+
|
|
60
|
+
[[package]]
|
|
61
|
+
name = "chrono"
|
|
62
|
+
version = "0.4.38"
|
|
63
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
64
|
+
checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401"
|
|
65
|
+
dependencies = [
|
|
66
|
+
"android-tzdata",
|
|
67
|
+
"iana-time-zone",
|
|
68
|
+
"js-sys",
|
|
69
|
+
"num-traits",
|
|
70
|
+
"wasm-bindgen",
|
|
71
|
+
"windows-targets",
|
|
72
|
+
]
|
|
73
|
+
|
|
74
|
+
[[package]]
|
|
75
|
+
name = "core-foundation-sys"
|
|
76
|
+
version = "0.8.6"
|
|
77
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
78
|
+
checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f"
|
|
79
|
+
|
|
80
|
+
[[package]]
|
|
81
|
+
name = "heck"
|
|
82
|
+
version = "0.4.1"
|
|
83
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
84
|
+
checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
|
|
85
|
+
|
|
86
|
+
[[package]]
|
|
87
|
+
name = "iana-time-zone"
|
|
88
|
+
version = "0.1.60"
|
|
89
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
90
|
+
checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141"
|
|
91
|
+
dependencies = [
|
|
92
|
+
"android_system_properties",
|
|
93
|
+
"core-foundation-sys",
|
|
94
|
+
"iana-time-zone-haiku",
|
|
95
|
+
"js-sys",
|
|
96
|
+
"wasm-bindgen",
|
|
97
|
+
"windows-core",
|
|
98
|
+
]
|
|
99
|
+
|
|
100
|
+
[[package]]
|
|
101
|
+
name = "iana-time-zone-haiku"
|
|
102
|
+
version = "0.1.2"
|
|
103
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
104
|
+
checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
|
|
105
|
+
dependencies = [
|
|
106
|
+
"cc",
|
|
107
|
+
]
|
|
108
|
+
|
|
109
|
+
[[package]]
|
|
110
|
+
name = "indoc"
|
|
111
|
+
version = "2.0.5"
|
|
112
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
113
|
+
checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5"
|
|
114
|
+
|
|
115
|
+
[[package]]
|
|
116
|
+
name = "js-sys"
|
|
117
|
+
version = "0.3.69"
|
|
118
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
119
|
+
checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d"
|
|
120
|
+
dependencies = [
|
|
121
|
+
"wasm-bindgen",
|
|
122
|
+
]
|
|
123
|
+
|
|
124
|
+
[[package]]
|
|
125
|
+
name = "libc"
|
|
126
|
+
version = "0.2.155"
|
|
127
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
128
|
+
checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c"
|
|
129
|
+
|
|
130
|
+
[[package]]
|
|
131
|
+
name = "lock_api"
|
|
132
|
+
version = "0.4.12"
|
|
133
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
134
|
+
checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17"
|
|
135
|
+
dependencies = [
|
|
136
|
+
"autocfg",
|
|
137
|
+
"scopeguard",
|
|
138
|
+
]
|
|
139
|
+
|
|
140
|
+
[[package]]
|
|
141
|
+
name = "log"
|
|
142
|
+
version = "0.4.22"
|
|
143
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
144
|
+
checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"
|
|
145
|
+
|
|
146
|
+
[[package]]
|
|
147
|
+
name = "matrixmultiply"
|
|
148
|
+
version = "0.3.8"
|
|
149
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
150
|
+
checksum = "7574c1cf36da4798ab73da5b215bbf444f50718207754cb522201d78d1cd0ff2"
|
|
151
|
+
dependencies = [
|
|
152
|
+
"autocfg",
|
|
153
|
+
"rawpointer",
|
|
154
|
+
]
|
|
155
|
+
|
|
156
|
+
[[package]]
|
|
157
|
+
name = "memoffset"
|
|
158
|
+
version = "0.9.1"
|
|
159
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
160
|
+
checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
|
|
161
|
+
dependencies = [
|
|
162
|
+
"autocfg",
|
|
163
|
+
]
|
|
164
|
+
|
|
165
|
+
[[package]]
|
|
166
|
+
name = "ndarray"
|
|
167
|
+
version = "0.15.6"
|
|
168
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
169
|
+
checksum = "adb12d4e967ec485a5f71c6311fe28158e9d6f4bc4a447b474184d0f91a8fa32"
|
|
170
|
+
dependencies = [
|
|
171
|
+
"matrixmultiply",
|
|
172
|
+
"num-complex",
|
|
173
|
+
"num-integer",
|
|
174
|
+
"num-traits",
|
|
175
|
+
"rawpointer",
|
|
176
|
+
]
|
|
177
|
+
|
|
178
|
+
[[package]]
|
|
179
|
+
name = "num-complex"
|
|
180
|
+
version = "0.4.6"
|
|
181
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
182
|
+
checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
|
|
183
|
+
dependencies = [
|
|
184
|
+
"num-traits",
|
|
185
|
+
]
|
|
186
|
+
|
|
187
|
+
[[package]]
|
|
188
|
+
name = "num-integer"
|
|
189
|
+
version = "0.1.46"
|
|
190
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
191
|
+
checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
|
|
192
|
+
dependencies = [
|
|
193
|
+
"num-traits",
|
|
194
|
+
]
|
|
195
|
+
|
|
196
|
+
[[package]]
|
|
197
|
+
name = "num-traits"
|
|
198
|
+
version = "0.2.19"
|
|
199
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
200
|
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
|
201
|
+
dependencies = [
|
|
202
|
+
"autocfg",
|
|
203
|
+
]
|
|
204
|
+
|
|
205
|
+
[[package]]
|
|
206
|
+
name = "numpy"
|
|
207
|
+
version = "0.21.0"
|
|
208
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
209
|
+
checksum = "ec170733ca37175f5d75a5bea5911d6ff45d2cd52849ce98b685394e4f2f37f4"
|
|
210
|
+
dependencies = [
|
|
211
|
+
"libc",
|
|
212
|
+
"ndarray",
|
|
213
|
+
"num-complex",
|
|
214
|
+
"num-integer",
|
|
215
|
+
"num-traits",
|
|
216
|
+
"pyo3",
|
|
217
|
+
"rustc-hash",
|
|
218
|
+
]
|
|
219
|
+
|
|
220
|
+
[[package]]
|
|
221
|
+
name = "once_cell"
|
|
222
|
+
version = "1.19.0"
|
|
223
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
224
|
+
checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
|
|
225
|
+
|
|
226
|
+
[[package]]
|
|
227
|
+
name = "parking_lot"
|
|
228
|
+
version = "0.12.3"
|
|
229
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
230
|
+
checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27"
|
|
231
|
+
dependencies = [
|
|
232
|
+
"lock_api",
|
|
233
|
+
"parking_lot_core",
|
|
234
|
+
]
|
|
235
|
+
|
|
236
|
+
[[package]]
|
|
237
|
+
name = "parking_lot_core"
|
|
238
|
+
version = "0.9.10"
|
|
239
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
240
|
+
checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8"
|
|
241
|
+
dependencies = [
|
|
242
|
+
"cfg-if",
|
|
243
|
+
"libc",
|
|
244
|
+
"redox_syscall",
|
|
245
|
+
"smallvec",
|
|
246
|
+
"windows-targets",
|
|
247
|
+
]
|
|
248
|
+
|
|
249
|
+
[[package]]
|
|
250
|
+
name = "portable-atomic"
|
|
251
|
+
version = "1.6.0"
|
|
252
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
253
|
+
checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0"
|
|
254
|
+
|
|
255
|
+
[[package]]
|
|
256
|
+
name = "proc-macro2"
|
|
257
|
+
version = "1.0.86"
|
|
258
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
259
|
+
checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77"
|
|
260
|
+
dependencies = [
|
|
261
|
+
"unicode-ident",
|
|
262
|
+
]
|
|
263
|
+
|
|
264
|
+
[[package]]
|
|
265
|
+
name = "pyo3"
|
|
266
|
+
version = "0.21.2"
|
|
267
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
268
|
+
checksum = "a5e00b96a521718e08e03b1a622f01c8a8deb50719335de3f60b3b3950f069d8"
|
|
269
|
+
dependencies = [
|
|
270
|
+
"cfg-if",
|
|
271
|
+
"chrono",
|
|
272
|
+
"indoc",
|
|
273
|
+
"libc",
|
|
274
|
+
"memoffset",
|
|
275
|
+
"num-complex",
|
|
276
|
+
"parking_lot",
|
|
277
|
+
"portable-atomic",
|
|
278
|
+
"pyo3-build-config",
|
|
279
|
+
"pyo3-ffi",
|
|
280
|
+
"pyo3-macros",
|
|
281
|
+
"unindent",
|
|
282
|
+
]
|
|
283
|
+
|
|
284
|
+
[[package]]
|
|
285
|
+
name = "pyo3-build-config"
|
|
286
|
+
version = "0.21.2"
|
|
287
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
288
|
+
checksum = "7883df5835fafdad87c0d888b266c8ec0f4c9ca48a5bed6bbb592e8dedee1b50"
|
|
289
|
+
dependencies = [
|
|
290
|
+
"once_cell",
|
|
291
|
+
"target-lexicon",
|
|
292
|
+
]
|
|
293
|
+
|
|
294
|
+
[[package]]
|
|
295
|
+
name = "pyo3-ffi"
|
|
296
|
+
version = "0.21.2"
|
|
297
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
298
|
+
checksum = "01be5843dc60b916ab4dad1dca6d20b9b4e6ddc8e15f50c47fe6d85f1fb97403"
|
|
299
|
+
dependencies = [
|
|
300
|
+
"libc",
|
|
301
|
+
"pyo3-build-config",
|
|
302
|
+
]
|
|
303
|
+
|
|
304
|
+
[[package]]
|
|
305
|
+
name = "pyo3-macros"
|
|
306
|
+
version = "0.21.2"
|
|
307
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
308
|
+
checksum = "77b34069fc0682e11b31dbd10321cbf94808394c56fd996796ce45217dfac53c"
|
|
309
|
+
dependencies = [
|
|
310
|
+
"proc-macro2",
|
|
311
|
+
"pyo3-macros-backend",
|
|
312
|
+
"quote",
|
|
313
|
+
"syn",
|
|
314
|
+
]
|
|
315
|
+
|
|
316
|
+
[[package]]
|
|
317
|
+
name = "pyo3-macros-backend"
|
|
318
|
+
version = "0.21.2"
|
|
319
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
320
|
+
checksum = "08260721f32db5e1a5beae69a55553f56b99bd0e1c3e6e0a5e8851a9d0f5a85c"
|
|
321
|
+
dependencies = [
|
|
322
|
+
"heck",
|
|
323
|
+
"proc-macro2",
|
|
324
|
+
"pyo3-build-config",
|
|
325
|
+
"quote",
|
|
326
|
+
"syn",
|
|
327
|
+
]
|
|
328
|
+
|
|
329
|
+
[[package]]
|
|
330
|
+
name = "quote"
|
|
331
|
+
version = "1.0.36"
|
|
332
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
333
|
+
checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7"
|
|
334
|
+
dependencies = [
|
|
335
|
+
"proc-macro2",
|
|
336
|
+
]
|
|
337
|
+
|
|
338
|
+
[[package]]
|
|
339
|
+
name = "rawpointer"
|
|
340
|
+
version = "0.2.1"
|
|
341
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
342
|
+
checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
|
|
343
|
+
|
|
344
|
+
[[package]]
|
|
345
|
+
name = "redox_syscall"
|
|
346
|
+
version = "0.5.3"
|
|
347
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
348
|
+
checksum = "2a908a6e00f1fdd0dfd9c0eb08ce85126f6d8bbda50017e74bc4a4b7d4a926a4"
|
|
349
|
+
dependencies = [
|
|
350
|
+
"bitflags",
|
|
351
|
+
]
|
|
352
|
+
|
|
353
|
+
[[package]]
|
|
354
|
+
name = "rustc-hash"
|
|
355
|
+
version = "1.1.0"
|
|
356
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
357
|
+
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
|
|
358
|
+
|
|
359
|
+
[[package]]
|
|
360
|
+
name = "scopeguard"
|
|
361
|
+
version = "1.2.0"
|
|
362
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
363
|
+
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
|
|
364
|
+
|
|
365
|
+
[[package]]
|
|
366
|
+
name = "smallvec"
|
|
367
|
+
version = "1.13.2"
|
|
368
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
369
|
+
checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
|
|
370
|
+
|
|
371
|
+
[[package]]
|
|
372
|
+
name = "syn"
|
|
373
|
+
version = "2.0.71"
|
|
374
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
375
|
+
checksum = "b146dcf730474b4bcd16c311627b31ede9ab149045db4d6088b3becaea046462"
|
|
376
|
+
dependencies = [
|
|
377
|
+
"proc-macro2",
|
|
378
|
+
"quote",
|
|
379
|
+
"unicode-ident",
|
|
380
|
+
]
|
|
381
|
+
|
|
382
|
+
[[package]]
|
|
383
|
+
name = "target-lexicon"
|
|
384
|
+
version = "0.12.15"
|
|
385
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
386
|
+
checksum = "4873307b7c257eddcb50c9bedf158eb669578359fb28428bef438fec8e6ba7c2"
|
|
387
|
+
|
|
388
|
+
[[package]]
|
|
389
|
+
name = "unicode-ident"
|
|
390
|
+
version = "1.0.12"
|
|
391
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
392
|
+
checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
|
|
393
|
+
|
|
394
|
+
[[package]]
|
|
395
|
+
name = "unindent"
|
|
396
|
+
version = "0.2.3"
|
|
397
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
398
|
+
checksum = "c7de7d73e1754487cb58364ee906a499937a0dfabd86bcb980fa99ec8c8fa2ce"
|
|
399
|
+
|
|
400
|
+
[[package]]
|
|
401
|
+
name = "wasm-bindgen"
|
|
402
|
+
version = "0.2.92"
|
|
403
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
404
|
+
checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8"
|
|
405
|
+
dependencies = [
|
|
406
|
+
"cfg-if",
|
|
407
|
+
"wasm-bindgen-macro",
|
|
408
|
+
]
|
|
409
|
+
|
|
410
|
+
[[package]]
|
|
411
|
+
name = "wasm-bindgen-backend"
|
|
412
|
+
version = "0.2.92"
|
|
413
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
414
|
+
checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da"
|
|
415
|
+
dependencies = [
|
|
416
|
+
"bumpalo",
|
|
417
|
+
"log",
|
|
418
|
+
"once_cell",
|
|
419
|
+
"proc-macro2",
|
|
420
|
+
"quote",
|
|
421
|
+
"syn",
|
|
422
|
+
"wasm-bindgen-shared",
|
|
423
|
+
]
|
|
424
|
+
|
|
425
|
+
[[package]]
|
|
426
|
+
name = "wasm-bindgen-macro"
|
|
427
|
+
version = "0.2.92"
|
|
428
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
429
|
+
checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726"
|
|
430
|
+
dependencies = [
|
|
431
|
+
"quote",
|
|
432
|
+
"wasm-bindgen-macro-support",
|
|
433
|
+
]
|
|
434
|
+
|
|
435
|
+
[[package]]
|
|
436
|
+
name = "wasm-bindgen-macro-support"
|
|
437
|
+
version = "0.2.92"
|
|
438
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
439
|
+
checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7"
|
|
440
|
+
dependencies = [
|
|
441
|
+
"proc-macro2",
|
|
442
|
+
"quote",
|
|
443
|
+
"syn",
|
|
444
|
+
"wasm-bindgen-backend",
|
|
445
|
+
"wasm-bindgen-shared",
|
|
446
|
+
]
|
|
447
|
+
|
|
448
|
+
[[package]]
|
|
449
|
+
name = "wasm-bindgen-shared"
|
|
450
|
+
version = "0.2.92"
|
|
451
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
452
|
+
checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96"
|
|
453
|
+
|
|
454
|
+
[[package]]
|
|
455
|
+
name = "windows-core"
|
|
456
|
+
version = "0.52.0"
|
|
457
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
458
|
+
checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9"
|
|
459
|
+
dependencies = [
|
|
460
|
+
"windows-targets",
|
|
461
|
+
]
|
|
462
|
+
|
|
463
|
+
[[package]]
|
|
464
|
+
name = "windows-targets"
|
|
465
|
+
version = "0.52.6"
|
|
466
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
467
|
+
checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
|
|
468
|
+
dependencies = [
|
|
469
|
+
"windows_aarch64_gnullvm",
|
|
470
|
+
"windows_aarch64_msvc",
|
|
471
|
+
"windows_i686_gnu",
|
|
472
|
+
"windows_i686_gnullvm",
|
|
473
|
+
"windows_i686_msvc",
|
|
474
|
+
"windows_x86_64_gnu",
|
|
475
|
+
"windows_x86_64_gnullvm",
|
|
476
|
+
"windows_x86_64_msvc",
|
|
477
|
+
]
|
|
478
|
+
|
|
479
|
+
[[package]]
|
|
480
|
+
name = "windows_aarch64_gnullvm"
|
|
481
|
+
version = "0.52.6"
|
|
482
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
483
|
+
checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
|
|
484
|
+
|
|
485
|
+
[[package]]
|
|
486
|
+
name = "windows_aarch64_msvc"
|
|
487
|
+
version = "0.52.6"
|
|
488
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
489
|
+
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
|
|
490
|
+
|
|
491
|
+
[[package]]
|
|
492
|
+
name = "windows_i686_gnu"
|
|
493
|
+
version = "0.52.6"
|
|
494
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
495
|
+
checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
|
|
496
|
+
|
|
497
|
+
[[package]]
|
|
498
|
+
name = "windows_i686_gnullvm"
|
|
499
|
+
version = "0.52.6"
|
|
500
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
501
|
+
checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
|
|
502
|
+
|
|
503
|
+
[[package]]
|
|
504
|
+
name = "windows_i686_msvc"
|
|
505
|
+
version = "0.52.6"
|
|
506
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
507
|
+
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
|
|
508
|
+
|
|
509
|
+
[[package]]
|
|
510
|
+
name = "windows_x86_64_gnu"
|
|
511
|
+
version = "0.52.6"
|
|
512
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
513
|
+
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
|
|
514
|
+
|
|
515
|
+
[[package]]
|
|
516
|
+
name = "windows_x86_64_gnullvm"
|
|
517
|
+
version = "0.52.6"
|
|
518
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
519
|
+
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
|
|
520
|
+
|
|
521
|
+
[[package]]
|
|
522
|
+
name = "windows_x86_64_msvc"
|
|
523
|
+
version = "0.52.6"
|
|
524
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
525
|
+
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "bilby_rust"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
authors = ["Colm Talbot <talbotcolm@gmail.com>"]
|
|
5
|
+
edition = "2021"
|
|
6
|
+
description = "Rust implementation of domain-specific geometrical operations for Bilby to mirror the functionality in bilby-cython using PyO3."
|
|
7
|
+
readme = "README.md"
|
|
8
|
+
repository = "https://github.com/ColmTalbot/bilby_rust"
|
|
9
|
+
license = "MIT"
|
|
10
|
+
categories = ["science", "date-and-time"]
|
|
11
|
+
exclude = ["examples/demonstration.ipynb", ".github/", ".gitignore", ".cargo_vcs_info.json"]
|
|
12
|
+
|
|
13
|
+
[dependencies]
|
|
14
|
+
chrono = "0.4"
|
|
15
|
+
numpy = "0.21"
|
|
16
|
+
pyo3 = { version = "0.21", features = ["chrono", "extension-module", "num-complex"] }
|
|
17
|
+
num-complex = "0.4"
|
|
18
|
+
|
|
19
|
+
[lib]
|
|
20
|
+
name = "bilby_rust"
|
|
21
|
+
crate-type = ["cdylib"]
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: bilby_rust
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Requires-Dist: numpy
|
|
5
|
+
Requires-Dist: pytest ; extra == 'test'
|
|
6
|
+
Requires-Dist: pytest-cov ; extra == 'test'
|
|
7
|
+
Requires-Dist: bilby-cython ; extra == 'test'
|
|
8
|
+
Requires-Dist: bilby ; extra == 'test'
|
|
9
|
+
Provides-Extra: test
|
|
10
|
+
Summary: Rust implementation of domain-specific geometrical operations for Bilby to mirror the functionality in bilby-cython using PyO3.
|
|
11
|
+
Author: Colm Talbot <talbotcolm@gmail.com>
|
|
12
|
+
Author-email: Colm Talbot <talbotcolm@gmail.com>
|
|
13
|
+
License: MIT
|
|
14
|
+
Requires-Python: >=3.7
|
|
15
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
16
|
+
Project-URL: Source Code, https://github.com/ColmTalbot/bilby_rust
|
|
17
|
+
|
|
18
|
+
# bilby-rust
|
|
19
|
+
|
|
20
|
+
[Rust](https://www.rust-lang.org/) implementation of domain-specific geometrical operations for [Bilby](https://git.ligo.org/lscsoft/bilby) to mirror the functionality in [bilby-cython](https://git.ligo.org/colm.talbot/bilby-cython) using [PyO3](https:/pyo3.rs).
|
|
21
|
+
|
|
22
|
+
## Usage
|
|
23
|
+
|
|
24
|
+
To compile the project and install the python bindings you can use [maturin](https://github.com/PyO3/maturin)
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
$ maturin develop
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
This will install an unoptimized version, if you want to test benchmarking, be sure to install with
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
$ maturin develop --release
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
On MacOS, you may need to install additional dependencies:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
rustup target add x86_64-apple-darwin
|
|
40
|
+
mamba install -c conda-forge clang
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
The python code can then be used directly in python
|
|
44
|
+
|
|
45
|
+
```python
|
|
46
|
+
>>> from bilby_rust.time import greenwich_mean_sidereal_time
|
|
47
|
+
>>> greenwich_mean_sidereal_time(1e9)
|
|
48
|
+
26930.069103915423
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
The API doesn't completely match `bilby-cython`:
|
|
52
|
+
- there is currently no support for writing `numpy` `ufuncs` using `PyO3` so the vectorized version of `greenwich_mean_sidereal_time` is implemented as `bilby_rust.time.greenwich_mean_sidereal_time_vectorized`.
|
|
53
|
+
- additional functionality for dealing with time- and frequency-dependent antenna response functions is additionally implemented using, e.g., `bilby_rust.geometry.{time_dependent_polarization_tensor,time_delay_from_geocenter_vectorized,frequency_dependent_detector_tensor}`. This was translated from an [implementation](https://git.ligo.org/jacob.golomb/bilby-cython/-/tree/long_wavelength) by @jacobgolomb for `bilby-cython`.
|
|
54
|
+
- the convention for the detector-based reference frame from [Roulet+](https://arxiv.org/abs/2207.03508) is included as `bilby_rust.geometry.zenith_azimuth_to_theta_phi_optimized`.
|
|
55
|
+
- calculation of the antenna response that projects the detector pattern against the polarization tensors using `bilby_rust.geometry.{antenna_response,antenna_response_all_model,antenna_response_tensor_modes}`.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# bilby-rust
|
|
2
|
+
|
|
3
|
+
[Rust](https://www.rust-lang.org/) implementation of domain-specific geometrical operations for [Bilby](https://git.ligo.org/lscsoft/bilby) to mirror the functionality in [bilby-cython](https://git.ligo.org/colm.talbot/bilby-cython) using [PyO3](https:/pyo3.rs).
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
To compile the project and install the python bindings you can use [maturin](https://github.com/PyO3/maturin)
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
$ maturin develop
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
This will install an unoptimized version, if you want to test benchmarking, be sure to install with
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
$ maturin develop --release
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
On MacOS, you may need to install additional dependencies:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
rustup target add x86_64-apple-darwin
|
|
23
|
+
mamba install -c conda-forge clang
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
The python code can then be used directly in python
|
|
27
|
+
|
|
28
|
+
```python
|
|
29
|
+
>>> from bilby_rust.time import greenwich_mean_sidereal_time
|
|
30
|
+
>>> greenwich_mean_sidereal_time(1e9)
|
|
31
|
+
26930.069103915423
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
The API doesn't completely match `bilby-cython`:
|
|
35
|
+
- there is currently no support for writing `numpy` `ufuncs` using `PyO3` so the vectorized version of `greenwich_mean_sidereal_time` is implemented as `bilby_rust.time.greenwich_mean_sidereal_time_vectorized`.
|
|
36
|
+
- additional functionality for dealing with time- and frequency-dependent antenna response functions is additionally implemented using, e.g., `bilby_rust.geometry.{time_dependent_polarization_tensor,time_delay_from_geocenter_vectorized,frequency_dependent_detector_tensor}`. This was translated from an [implementation](https://git.ligo.org/jacob.golomb/bilby-cython/-/tree/long_wavelength) by @jacobgolomb for `bilby-cython`.
|
|
37
|
+
- the convention for the detector-based reference frame from [Roulet+](https://arxiv.org/abs/2207.03508) is included as `bilby_rust.geometry.zenith_azimuth_to_theta_phi_optimized`.
|
|
38
|
+
- calculation of the antenna response that projects the detector pattern against the polarization tensors using `bilby_rust.geometry.{antenna_response,antenna_response_all_model,antenna_response_tensor_modes}`.
|