bilby-rust 0.1.0__cp39-none-win_amd64.whl

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/__init__.py ADDED
@@ -0,0 +1,5 @@
1
+ from .bilby_rust import *
2
+
3
+ __doc__ = bilby_rust.__doc__
4
+ if hasattr(bilby_rust, "__all__"):
5
+ __all__ = bilby_rust.__all__
Binary file
@@ -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,5 @@
1
+ bilby_rust-0.1.0.dist-info/METADATA,sha256=_wEl760O8YXq2ZffH-Bs7QW2b4hcuDsFTbW49iIr0Zs,2686
2
+ bilby_rust-0.1.0.dist-info/WHEEL,sha256=iLyJQhiiBYwo5FdZQS-97uaKimQdR9d5M5S1bVJlIxM,94
3
+ bilby_rust/__init__.py,sha256=chfeK6WstiRTcDwJCicXPB5Y9dhd5BqCSSHzV_xBfAU,123
4
+ bilby_rust/bilby_rust.cp39-win_amd64.pyd,sha256=NwDIGjTwaudKg4RSbLFQy0U7iPSm36EK6ptFWFYYjYk,398336
5
+ bilby_rust-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.7.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp39-none-win_amd64