fastlisaresponse 1.0.2__tar.gz → 1.0.4__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.

Potentially problematic release.


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

Files changed (29) hide show
  1. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/PKG-INFO +7 -5
  2. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/README.md +4 -2
  3. fastlisaresponse-1.0.4/fastlisaresponse/_version.py +1 -0
  4. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/fastlisaresponse/response.py +8 -26
  5. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/fastlisaresponse.egg-info/PKG-INFO +7 -5
  6. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/scripts/prebuild.py +3 -3
  7. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/setup.py +4 -4
  8. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/src/Detector.cpp +2 -2
  9. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/src/pycppdetector.cpp +123 -123
  10. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/src/responselisa_cpu.cpp +123 -123
  11. fastlisaresponse-1.0.2/fastlisaresponse/_version.py +0 -1
  12. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/MANIFEST.in +0 -0
  13. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/fastlisaresponse/__init__.py +0 -0
  14. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/fastlisaresponse/cutils/__init__.py +0 -0
  15. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/fastlisaresponse/pointer_adjust.py +0 -0
  16. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/fastlisaresponse/utils/__init__.py +0 -0
  17. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/fastlisaresponse/utils/utility.py +0 -0
  18. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/fastlisaresponse.egg-info/SOURCES.txt +0 -0
  19. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/fastlisaresponse.egg-info/dependency_links.txt +0 -0
  20. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/fastlisaresponse.egg-info/not-zip-safe +0 -0
  21. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/fastlisaresponse.egg-info/top_level.txt +0 -0
  22. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/include/Detector.hpp +0 -0
  23. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/include/LISAResponse.hh +0 -0
  24. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/include/cuda_complex.hpp +0 -0
  25. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/pyproject.toml +0 -0
  26. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/setup.cfg +0 -0
  27. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/src/LISAResponse.cpp +0 -0
  28. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/src/pycppdetector.pyx +0 -0
  29. {fastlisaresponse-1.0.2 → fastlisaresponse-1.0.4}/src/responselisa_cpu.pyx +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fastlisaresponse
3
- Version: 1.0.2
3
+ Version: 1.0.4
4
4
  Home-page: https://github.com/mikekatz04/lisa-on-gpu
5
5
  Author: Michael Katz
6
6
  Author-email: mikekatz04@gmail.com
@@ -10,8 +10,8 @@ Classifier: Environment :: GPU :: NVIDIA CUDA
10
10
  Classifier: Natural Language :: English
11
11
  Classifier: Programming Language :: C++
12
12
  Classifier: Programming Language :: Cython
13
- Classifier: Programming Language :: Python :: 3.7
14
- Requires-Python: >=3.6
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Requires-Python: >=3.12
15
15
  Description-Content-Type: text/markdown
16
16
 
17
17
  # fastlisaresponse: Generic LISA response function for GPUs
@@ -20,7 +20,9 @@ This code base provides a GPU-accelerated version of the generic time-domain LIS
20
20
 
21
21
  Please see the [documentation](https://mikekatz04.github.io/lisa-on-gpu/) for further information on these modules. The code can be found on Github [here](https://github.com/mikekatz04/lisa-on-gpu). It can be found on # TODO fix [Zenodo](https://zenodo.org/record/3981654#.XzS_KRNKjlw).
22
22
 
23
- If you use all or any parts of this code, please cite (TODO: fill in ). See the [documentation](https://mikekatz04.github.io/lisa-on-gpu/) to properly cite specific modules.
23
+ If you use all or any parts of this code, please cite [arXiv:2204.06633](https://arxiv.org/abs/2204.06633). See the [documentation](https://mikekatz04.github.io/lisa-on-gpu/) to properly cite specific modules.
24
+
25
+ **Warning**: newest version (1.0.4) of code with `lisatools` orbits needs detailed testing before deployed for a paper.
24
26
 
25
27
  ## Getting Started
26
28
 
@@ -114,7 +116,7 @@ Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduc
114
116
 
115
117
  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).
116
118
 
117
- Current Version: 1.0.2
119
+ Current Version: 1.0.4
118
120
 
119
121
  ## Authors
120
122
 
@@ -4,7 +4,9 @@ This code base provides a GPU-accelerated version of the generic time-domain LIS
4
4
 
5
5
  Please see the [documentation](https://mikekatz04.github.io/lisa-on-gpu/) for further information on these modules. The code can be found on Github [here](https://github.com/mikekatz04/lisa-on-gpu). It can be found on # TODO fix [Zenodo](https://zenodo.org/record/3981654#.XzS_KRNKjlw).
6
6
 
7
- If you use all or any parts of this code, please cite (TODO: fill in ). See the [documentation](https://mikekatz04.github.io/lisa-on-gpu/) to properly cite specific modules.
7
+ If you use all or any parts of this code, please cite [arXiv:2204.06633](https://arxiv.org/abs/2204.06633). See the [documentation](https://mikekatz04.github.io/lisa-on-gpu/) to properly cite specific modules.
8
+
9
+ **Warning**: newest version (1.0.4) of code with `lisatools` orbits needs detailed testing before deployed for a paper.
8
10
 
9
11
  ## Getting Started
10
12
 
@@ -98,7 +100,7 @@ Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduc
98
100
 
99
101
  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).
100
102
 
101
- Current Version: 1.0.2
103
+ Current Version: 1.0.4
102
104
 
103
105
  ## Authors
104
106
 
@@ -0,0 +1 @@
1
+ __version__ = '1.0.4'
@@ -18,7 +18,6 @@ except (ImportError, ModuleNotFoundError) as e:
18
18
 
19
19
  gpu = False
20
20
 
21
- from .cutils.detector import pycppdetector as pycppdetector_here
22
21
  from pyresponse_cpu import get_response_wrap as get_response_wrap_cpu
23
22
  from pyresponse_cpu import get_tdi_delays_wrap as get_tdi_delays_wrap_cpu
24
23
  import time
@@ -57,7 +56,7 @@ class pyResponseTDI(object):
57
56
  the response for these orbits numerically. This includes both the projection
58
57
  of the gravitational waves onto the LISA constellation arms and combinations \
59
58
  of projections into TDI observables. The methods and maths used can be found
60
- in # TODO: add url for paper.
59
+ [here](https://arxiv.org/abs/2204.06633).
61
60
 
62
61
  This class is also GPU-accelerated, which is very helpful for Bayesian inference
63
62
  methods.
@@ -65,12 +64,6 @@ class pyResponseTDI(object):
65
64
  Args:
66
65
  sampling_frequency (double): The sampling rate in Hz.
67
66
  num_pts (int): Number of points to produce for the final output template.
68
- orbit_kwargs (dict): Dictionary containing orbital information. The kwargs and defaults
69
- are: :code:`orbit_module=None, order=0, max_t_orbits=3.15576e7, orbit_file=None`.
70
- :code:`orbit_module` is an orbit module from the LDC package. :code:`max_t_orbits` is
71
- the maximum time desired for the orbital information. `orbit_file` is
72
- an h5 file of the form used `here <https://gitlab.in2p3.fr/lisa-simulation/orbits>`_.
73
- :code:`order` is the order of interpolation used in the orbit modules.
74
67
  order (int, optional): Order of Lagrangian interpolation technique. Lower orders
75
68
  will be faster. The user must make sure the order is sufficient for the
76
69
  waveform being used. (default: 25)
@@ -84,15 +77,15 @@ class pyResponseTDI(object):
84
77
  ``'sign'`` is the sign in front of the contribution to the TDI observable. It takes the value of `+1` or `-1`.
85
78
  ``type`` is either ``"delay"`` or ``"advance"``. It is optional and defaults to ``"delay"``.
86
79
  (default: ``"1st generation"``)
87
- tdi_orbit_kwargs (dict, optional): Same as :code:`orbit_kwargs`, but specifically for the TDI
88
- portion of the response computation. This allows the user to use two different orbits
89
- for the projections and TDI. For example, this can be used to examine the efficacy of
90
- frequency domain TDI codes that can handle generic orbits for the projections, but
91
- assume equal armlength orbits to reduce and simplify the expression for TDI
92
- computations. (default: :code:`None`, this means the orbits for the projections
93
- and TDI will be the same and will be built from :code:`orbit_kwargs`)
80
+ orbits (:class:`Orbits`, optional): Orbits class from LISA Analysis Tools. Works with LISA Orbits
81
+ outputs: `lisa-simulation.pages.in2p3.fr/orbits/ <https://lisa-simulation.pages.in2p3.fr/orbits/latest/>`_.
82
+ (default: :class:`EqualArmlengthOrbits`)
94
83
  tdi_chan (str, optional): Which TDI channel combination to return. Choices are :code:`'XYZ'`,
95
84
  :code:`AET`, or :code:`AE`. (default: :code:`'XYZ'`)
85
+ tdi_orbits (:class:`Orbits`, optional): Set if different orbits from projection.
86
+ Orbits class from LISA Analysis Tools. Works with LISA Orbits
87
+ outputs: `lisa-simulation.pages.in2p3.fr/orbits/ <https://lisa-simulation.pages.in2p3.fr/orbits/latest/>`_.
88
+ (default: :class:`EqualArmlengthOrbits`)
96
89
  use_gpu (bool, optional): If True, run code on the GPU. (default: :code:`False`)
97
90
 
98
91
  Attributes:
@@ -119,20 +112,12 @@ class pyResponseTDI(object):
119
112
  interpolation. This is hard coded to 1001.
120
113
  num_channels (int): 3.
121
114
  num_pts (int): Number of points to produce for the final output template.
122
- num_tdi_combinations (int): Number of independent arm computations.
123
- num_tdi_delay_comps (int): Number of independent arm computations that require delays.
124
- orbits_store (dict): Contains orbital information for the projection and TDI
125
- steps.
126
115
  order (int): Order of Lagrangian interpolation technique.
127
116
  response_gen (func): Projection generator function.
128
117
  sampling_frequency (double): The sampling rate in Hz.
129
118
  tdi (str or list): TDI setup.
130
119
  tdi_buffer (int): The buffer necessary for all information needed at early times
131
120
  for the TDI computation. This is set to 200.
132
- tdi_chan (str): Which TDI channel combination to return.
133
- tdi_delays (xp.ndarray): TDI delays.
134
- tdi_gen (func): TDI generating function.
135
- tdi_signs (xp.ndarray): Signs applied to the addition of a delayed link. (+1 or -1)
136
121
  use_gpu (bool): If True, run on GPU.
137
122
  xp (obj): Either Numpy or Cupy.
138
123
 
@@ -216,8 +201,6 @@ class pyResponseTDI(object):
216
201
 
217
202
  assert isinstance(orbits, Orbits)
218
203
 
219
- orbits.pycppdetector_base = pycppdetector_here
220
-
221
204
  self._response_orbits = deepcopy(orbits)
222
205
 
223
206
  if not self._response_orbits.configured:
@@ -237,7 +220,6 @@ class pyResponseTDI(object):
237
220
 
238
221
  assert isinstance(orbits, Orbits)
239
222
 
240
- orbits.pycppdetector_base = pycppdetector_here
241
223
  self._tdi_orbits = deepcopy(orbits)
242
224
 
243
225
  if not self._tdi_orbits.configured:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fastlisaresponse
3
- Version: 1.0.2
3
+ Version: 1.0.4
4
4
  Home-page: https://github.com/mikekatz04/lisa-on-gpu
5
5
  Author: Michael Katz
6
6
  Author-email: mikekatz04@gmail.com
@@ -10,8 +10,8 @@ Classifier: Environment :: GPU :: NVIDIA CUDA
10
10
  Classifier: Natural Language :: English
11
11
  Classifier: Programming Language :: C++
12
12
  Classifier: Programming Language :: Cython
13
- Classifier: Programming Language :: Python :: 3.7
14
- Requires-Python: >=3.6
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Requires-Python: >=3.12
15
15
  Description-Content-Type: text/markdown
16
16
 
17
17
  # fastlisaresponse: Generic LISA response function for GPUs
@@ -20,7 +20,9 @@ This code base provides a GPU-accelerated version of the generic time-domain LIS
20
20
 
21
21
  Please see the [documentation](https://mikekatz04.github.io/lisa-on-gpu/) for further information on these modules. The code can be found on Github [here](https://github.com/mikekatz04/lisa-on-gpu). It can be found on # TODO fix [Zenodo](https://zenodo.org/record/3981654#.XzS_KRNKjlw).
22
22
 
23
- If you use all or any parts of this code, please cite (TODO: fill in ). See the [documentation](https://mikekatz04.github.io/lisa-on-gpu/) to properly cite specific modules.
23
+ If you use all or any parts of this code, please cite [arXiv:2204.06633](https://arxiv.org/abs/2204.06633). See the [documentation](https://mikekatz04.github.io/lisa-on-gpu/) to properly cite specific modules.
24
+
25
+ **Warning**: newest version (1.0.4) of code with `lisatools` orbits needs detailed testing before deployed for a paper.
24
26
 
25
27
  ## Getting Started
26
28
 
@@ -114,7 +116,7 @@ Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduc
114
116
 
115
117
  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).
116
118
 
117
- Current Version: 1.0.2
119
+ Current Version: 1.0.4
118
120
 
119
121
  ## Authors
120
122
 
@@ -24,21 +24,21 @@ with open("fastlisaresponse/_version.py", "w") as f:
24
24
  import requests
25
25
 
26
26
  r = requests.get(
27
- "https://raw.githubusercontent.com/mikekatz04/LISAanalysistools/dev2/src/Detector.cpp"
27
+ "https://raw.githubusercontent.com/mikekatz04/LISAanalysistools/main/src/Detector.cpp"
28
28
  )
29
29
 
30
30
  with open("src/Detector.cpp", "wb") as f:
31
31
  f.write(r.content)
32
32
 
33
33
  r = requests.get(
34
- "https://raw.githubusercontent.com/mikekatz04/LISAanalysistools/dev2/include/Detector.hpp"
34
+ "https://raw.githubusercontent.com/mikekatz04/LISAanalysistools/main/include/Detector.hpp"
35
35
  )
36
36
 
37
37
  with open("include/Detector.hpp", "wb") as f:
38
38
  f.write(r.content)
39
39
 
40
40
  r = requests.get(
41
- "https://raw.githubusercontent.com/mikekatz04/LISAanalysistools/dev2/src/pycppdetector.pyx"
41
+ "https://raw.githubusercontent.com/mikekatz04/LISAanalysistools/main/src/pycppdetector.pyx"
42
42
  )
43
43
 
44
44
  with open("src/pycppdetector.pyx", "wb") as f:
@@ -225,13 +225,13 @@ setup(
225
225
  author_email="mikekatz04@gmail.com",
226
226
  ext_modules=extensions,
227
227
  # Inject our custom trigger
228
- packages=["fastlisaresponse", "fastlisaresponse.utils", "fastlisaresponse.cutils"],
228
+ packages=["fastlisaresponse", "fastlisaresponse.utils"],
229
229
  cmdclass={"build_ext": custom_build_ext},
230
230
  # Since the package has c code, the egg cannot be zipped
231
231
  zip_safe=False,
232
232
  long_description=long_description,
233
233
  long_description_content_type="text/markdown",
234
- version="1.0.2",
234
+ version="1.0.4",
235
235
  url="https://github.com/mikekatz04/lisa-on-gpu",
236
236
  classifiers=[
237
237
  "Programming Language :: Python :: 3",
@@ -240,7 +240,7 @@ setup(
240
240
  "Natural Language :: English",
241
241
  "Programming Language :: C++",
242
242
  "Programming Language :: Cython",
243
- "Programming Language :: Python :: 3.7",
243
+ "Programming Language :: Python :: 3.12",
244
244
  ],
245
- python_requires=">=3.6",
245
+ python_requires=">=3.12",
246
246
  )
@@ -67,8 +67,8 @@ double Orbits::interpolate(double t, double *in_arr, int window, int major_ndim,
67
67
 
68
68
  // m *(x - x0) + y0
69
69
  double fin = ((up - down) / dt) * (t - (dt * window)) + down;
70
- if ((ndim == 1))
71
- printf("%d %e %e %e %e \n", window, fin, down, up, (t - (dt * window)));
70
+ // if ((ndim == 1))
71
+ // printf("%d %e %e %e %e \n", window, fin, down, up, (t - (dt * window)));
72
72
 
73
73
  return fin;
74
74
  }