fastlisaresponse 1.0.6__cp312-cp312-macosx_10_9_x86_64.whl → 1.0.8__cp312-cp312-macosx_10_9_x86_64.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.

Potentially problematic release.


This version of fastlisaresponse might be problematic. Click here for more details.

@@ -1 +1 @@
1
- __version__ = '1.0.6'
1
+ __version__ = "1.0.7"
@@ -8,18 +8,18 @@ from copy import deepcopy
8
8
 
9
9
  try:
10
10
  import cupy as cp
11
- from pyresponse import get_response_wrap as get_response_wrap_gpu
12
- from pyresponse import get_tdi_delays_wrap as get_tdi_delays_wrap_gpu
11
+ from .pyresponse_gpu import get_response_wrap as get_response_wrap_gpu
12
+ from .pyresponse_gpu import get_tdi_delays_wrap as get_tdi_delays_wrap_gpu
13
13
 
14
14
  gpu = True
15
15
 
16
16
  except (ImportError, ModuleNotFoundError) as e:
17
- import numpy as xp
17
+ pass
18
18
 
19
19
  gpu = False
20
20
 
21
- from pyresponse_cpu import get_response_wrap as get_response_wrap_cpu
22
- from pyresponse_cpu import get_tdi_delays_wrap as get_tdi_delays_wrap_cpu
21
+ from .pyresponse_cpu import get_response_wrap as get_response_wrap_cpu
22
+ from .pyresponse_cpu import get_tdi_delays_wrap as get_tdi_delays_wrap_cpu
23
23
  import time
24
24
  import h5py
25
25
 
@@ -113,7 +113,6 @@ class pyResponseTDI(object):
113
113
  num_channels (int): 3.
114
114
  num_pts (int): Number of points to produce for the final output template.
115
115
  order (int): Order of Lagrangian interpolation technique.
116
- response_gen (func): Projection generator function.
117
116
  sampling_frequency (double): The sampling rate in Hz.
118
117
  tdi (str or list): TDI setup.
119
118
  tdi_buffer (int): The buffer necessary for all information needed at early times
@@ -153,13 +152,6 @@ class pyResponseTDI(object):
153
152
 
154
153
  # setup functions for GPU or CPU
155
154
  self.use_gpu = use_gpu
156
- if use_gpu:
157
- self.response_gen = get_response_wrap_gpu
158
- self.tdi_gen = get_tdi_delays_wrap_gpu
159
-
160
- else:
161
- self.response_gen = get_response_wrap_cpu
162
- self.tdi_gen = get_tdi_delays_wrap_cpu
163
155
 
164
156
  # prepare the interpolation of A and E in the Lagrangian interpolation
165
157
  self._fill_A_E()
@@ -183,6 +175,16 @@ class pyResponseTDI(object):
183
175
  # setup TDI info
184
176
  self._init_TDI_delays()
185
177
 
178
+ @property
179
+ def response_gen(self) -> callable:
180
+ """CPU/GPU function for generating the projections."""
181
+ return get_response_wrap_cpu if not self.use_gpu else get_response_wrap_gpu
182
+
183
+ @property
184
+ def tdi_gen(self) -> callable:
185
+ """CPU/GPU function for generating tdi."""
186
+ return get_tdi_delays_wrap_cpu if not self.use_gpu else get_tdi_delays_wrap_gpu
187
+
186
188
  @property
187
189
  def xp(self) -> object:
188
190
  return np if not self.use_gpu else cp
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fastlisaresponse
3
- Version: 1.0.6
3
+ Version: 1.0.8
4
4
  Home-page: https://github.com/mikekatz04/lisa-on-gpu
5
5
  Author: Michael Katz
6
6
  Author-email: mikekatz04@gmail.com
@@ -11,7 +11,7 @@ Classifier: Natural Language :: English
11
11
  Classifier: Programming Language :: C++
12
12
  Classifier: Programming Language :: Cython
13
13
  Classifier: Programming Language :: Python :: 3.12
14
- Requires-Python: >=3.12
14
+ Requires-Python: >=3.6
15
15
  Description-Content-Type: text/markdown
16
16
 
17
17
  # fastlisaresponse: Generic LISA response function for GPUs
@@ -40,7 +40,7 @@ See [examples notebook](https://github.com/mikekatz04/lisa-on-gpu/blob/master/ex
40
40
 
41
41
  ### Prerequisites
42
42
 
43
- Now (version 1.0.6) `fastlisaresponse` requires the newest version of [LISA Analysis Tools](github.com/mikekatz04/LISAanalysistools). You can run `pip install lisaanalysistools`.
43
+ Now (version 1.0.7) `fastlisaresponse` requires the newest version of [LISA Analysis Tools](github.com/mikekatz04/LISAanalysistools). You can run `pip install lisaanalysistools`.
44
44
 
45
45
  To install this software for CPU usage, you need Python >3.4 and NumPy. To run the examples, you will also need jupyter and matplotlib. We generally recommend installing everything, including gcc and g++ compilers, in the conda environment as is shown in the examples here. This generally helps avoid compilation and linking issues. If you use your own chosen compiler, you will need to make sure all necessary information is passed to the setup command (see below). You also may need to add information to the `setup.py` file.
46
46
 
@@ -105,7 +105,7 @@ Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduc
105
105
 
106
106
  We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/mikekatz04/lisa-on-gpu/tags).
107
107
 
108
- Current Version: 1.0.6
108
+ Current Version: 1.0.7
109
109
 
110
110
  ## Authors
111
111
 
@@ -0,0 +1,11 @@
1
+ fastlisaresponse/__init__.py,sha256=wwmiIBy9IuFwoc4jQyJVkJBhjB8B1XZjerTe_E8FkI8,53
2
+ fastlisaresponse/_version.py,sha256=BW7SWRpHoxuOQZ67pS20yog2LWYl-nK7-BEFBNrHGgA,22
3
+ fastlisaresponse/pointer_adjust.py,sha256=TjcSehyffLxwgJnrAmcFlPvxXb3XPElMoHXLBOQN-PI,736
4
+ fastlisaresponse/pyresponse_cpu.cpython-312-darwin.so,sha256=OaCD5Wyab_g6hAnw2f7MKduFyq3mXOuIhF9doJ4SIYg,97208
5
+ fastlisaresponse/response.py,sha256=eMHrMnEFcm_ltJ3836FKsoYzleazS1UBwMsUm6C0qZc,28637
6
+ fastlisaresponse/utils/__init__.py,sha256=pf2NmWKs_uQNzlyA5iNO1gTRDISKNmIIsvOcKqQ3hgw,33
7
+ fastlisaresponse/utils/utility.py,sha256=NrJdBmEnLkLPk6Ile1TZg8jNLw6xERiSp58iGVlz01s,2709
8
+ fastlisaresponse-1.0.8.dist-info/METADATA,sha256=ZDmEQpkvd6PbHPlpEicJKaU-amF6bWnHZFv8i5tgqWg,4727
9
+ fastlisaresponse-1.0.8.dist-info/WHEEL,sha256=Yg9h4QNT-1nYmU7BoP5fPg60gfiPD4f77j-IPR5YwEc,110
10
+ fastlisaresponse-1.0.8.dist-info/top_level.txt,sha256=J4M7Xx_52RqYZrLf99ryAbQjq8GbVjgZdhxekkYw8lg,17
11
+ fastlisaresponse-1.0.8.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (72.1.0)
2
+ Generator: setuptools (73.0.1)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp312-cp312-macosx_10_9_x86_64
5
5
 
@@ -1,2 +1 @@
1
1
  fastlisaresponse
2
- pyresponse_cpu
@@ -1,11 +0,0 @@
1
- pyresponse_cpu.cpython-312-darwin.so,sha256=c57KsIbWmFEKC4ojqWL-Qg2oUapg41micwnl20IDQbk,91896
2
- fastlisaresponse/__init__.py,sha256=wwmiIBy9IuFwoc4jQyJVkJBhjB8B1XZjerTe_E8FkI8,53
3
- fastlisaresponse/_version.py,sha256=zrUEHc9dmvLJ5ka5maZk9TTHoZ21dwKsENXeOSwXM3o,21
4
- fastlisaresponse/pointer_adjust.py,sha256=TjcSehyffLxwgJnrAmcFlPvxXb3XPElMoHXLBOQN-PI,736
5
- fastlisaresponse/response.py,sha256=WNxw1a4JXikePAss0KUMf4bIz86gFh370Klm0DAbUAs,28553
6
- fastlisaresponse/utils/__init__.py,sha256=pf2NmWKs_uQNzlyA5iNO1gTRDISKNmIIsvOcKqQ3hgw,33
7
- fastlisaresponse/utils/utility.py,sha256=NrJdBmEnLkLPk6Ile1TZg8jNLw6xERiSp58iGVlz01s,2709
8
- fastlisaresponse-1.0.6.dist-info/METADATA,sha256=Ndiz0mRY9NAaVw3vwW-CyPWvQX4F1mPueTH0sI_yC40,4728
9
- fastlisaresponse-1.0.6.dist-info/WHEEL,sha256=wTFHiv6xiwExbw_CBGcw1b3hAKzFq_QaWIv4Plh5P0w,110
10
- fastlisaresponse-1.0.6.dist-info/top_level.txt,sha256=xbAh3KhbfqEkGUbhVISA5j-Qx62Bwy7szKCZGg5WZWA,32
11
- fastlisaresponse-1.0.6.dist-info/RECORD,,
Binary file