lisaanalysistools 1.0.11__cp312-cp312-macosx_10_9_x86_64.whl → 1.0.12__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 lisaanalysistools might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lisaanalysistools
3
- Version: 1.0.11
3
+ Version: 1.0.12
4
4
  Home-page: https://github.com/mikekatz04/LISAanalysistools
5
5
  Author: Michael Katz
6
6
  Author-email: mikekatz04@gmail.com
@@ -66,7 +66,7 @@ Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduc
66
66
 
67
67
  We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/mikekatz04/LISAanalysistools/tags).
68
68
 
69
- Current Version: 1.0.11
69
+ Current Version: 1.0.12
70
70
 
71
71
  ## Authors/Developers
72
72
 
@@ -1,13 +1,13 @@
1
1
  lisatools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- lisatools/_version.py,sha256=kORDw-aHXqe534RIAm9NvG4SSRug8egjhH2hTnHhut0,124
2
+ lisatools/_version.py,sha256=1Lp_ETV00qR2o-39OIKWoOpdUW6gApuQthdWT5LgYeg,124
3
3
  lisatools/analysiscontainer.py,sha256=UQft6SvyDueDtuL1H1auiEzG5IEsFwRiiXf_0DHtu5U,16289
4
- lisatools/datacontainer.py,sha256=QVz0twD46Fl_J-ueGQUCXOJkkXUEum7yrwp9LaVeohU,9853
4
+ lisatools/datacontainer.py,sha256=oCvSbGFYWKUpAPfCHdXut-5-VEzoBs560ZtxFSUOPes,9927
5
5
  lisatools/detector.py,sha256=1ATZToFoy14U3ACTyver2x9DKavJ3l6ToU6nUSGSTmo,21161
6
- lisatools/diagnostic.py,sha256=o9vtfXbY3yMDk4cGNeOsTrlP7gYG_BRROw7gyuThDaM,34192
7
- lisatools/sensitivity.py,sha256=3BEVnRjFsQ7HZX6PRjd6B7K2FyIJRL3lpQpGaHjNgMA,27393
6
+ lisatools/diagnostic.py,sha256=gJcMSmK_JCBTT9SEl3SCTBObp8tRUql-yXomEd31KyY,34422
7
+ lisatools/sensitivity.py,sha256=jNksSpJzdeHXaH2R4seHzzjpyW-VPJIB9JdVI0elzrE,27453
8
8
  lisatools/stochastic.py,sha256=CysAQ5BIVD349fLjAMpZAXaT0X0dFjrd4QFi0vfqops,9458
9
9
  lisatools/cutils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- lisatools/cutils/detector_cpu.cpython-312-darwin.so,sha256=xhTNwTCXaSHLmHFOWOVAl3sP4tDy2o7TMExj_G5MORE,154720
10
+ lisatools/cutils/detector_cpu.cpython-312-darwin.so,sha256=hcl6VzYfGP8SORIyY_Xn4BuIVQkj7UOaYWcjw7Dg810,154720
11
11
  lisatools/cutils/include/Detector.hpp,sha256=Ic37OgP-gvEg8qouhv9aFYf7vQP98tJ_i6PGu8RI1YQ,2050
12
12
  lisatools/cutils/include/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  lisatools/cutils/include/global.hpp,sha256=3VPiqglTMRrIBXlEvDUJO2-CjKy_SLUXZt-9A1fH6lQ,572
@@ -36,8 +36,8 @@ lisatools/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
36
  lisatools/utils/constants.py,sha256=r1kVwkpbZS13JTOxj2iRxT5sMgTYX30y-S0JdVmD5Oo,1354
37
37
  lisatools/utils/pointeradjust.py,sha256=2sT-7qeYWr1pd_sHk9leVHUTSJ7jJgYIRoWQOtYqguE,2995
38
38
  lisatools/utils/utility.py,sha256=MKqRsG8qRI1xCsj51mt6QRa80-deUUgedxibyMV3KD4,6776
39
- lisaanalysistools-1.0.11.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
40
- lisaanalysistools-1.0.11.dist-info/METADATA,sha256=xjT_alb_5mDWKzhKyK9KldcQjlndzlQ8-eyrZ9Fp8fk,4202
41
- lisaanalysistools-1.0.11.dist-info/WHEEL,sha256=zL8OKpwMaCM_hEdCwF-bHbg5JyuZtrW4vMYNMNxkj9k,110
42
- lisaanalysistools-1.0.11.dist-info/top_level.txt,sha256=qXUn8Xi8yvK0vr3QH0vvT5cmoccjSj-UPeKGLAxdYGo,10
43
- lisaanalysistools-1.0.11.dist-info/RECORD,,
39
+ lisaanalysistools-1.0.12.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
40
+ lisaanalysistools-1.0.12.dist-info/METADATA,sha256=2u6VUXb26VH1LhWt8i3LBbZVEQsiezeCV9MSWSia8Xw,4202
41
+ lisaanalysistools-1.0.12.dist-info/WHEEL,sha256=zL8OKpwMaCM_hEdCwF-bHbg5JyuZtrW4vMYNMNxkj9k,110
42
+ lisaanalysistools-1.0.12.dist-info/top_level.txt,sha256=qXUn8Xi8yvK0vr3QH0vvT5cmoccjSj-UPeKGLAxdYGo,10
43
+ lisaanalysistools-1.0.12.dist-info/RECORD,,
lisatools/_version.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = '1.0.11'
1
+ __version__ = '1.0.12'
2
2
  __copyright__ = "Michael L. Katz 2024"
3
3
  __name__ = "lisaanalysistools"
4
4
  __author__ = "Michael L. Katz"
@@ -104,11 +104,12 @@ class DataResidualArray:
104
104
  self._Tobs = self.data_length * dt
105
105
  self._df = 1 / self._Tobs
106
106
  self._fmax = 1 / (2 * dt)
107
- self._f_arr = np.fft.rfftfreq(self.data_length, dt)
107
+ xp = get_array_module(self.data_res_arr)
108
+ self._f_arr = xp.asarray(np.fft.rfftfreq(self.data_length, dt))
108
109
 
109
110
  # transform data
110
111
  tmp = (
111
- get_array_module(self.data_res_arr).fft.rfft(self.data_res_arr, axis=-1)
112
+ xp.fft.rfft(self.data_res_arr, axis=-1)
112
113
  * self._dt
113
114
  )
114
115
  del self._data_res_arr
@@ -225,7 +226,8 @@ class DataResidualArray:
225
226
  raise ValueError
226
227
 
227
228
  self.nchannels = len(new_out)
228
- self._data_res_arr = np.asarray(list(new_out), dtype=new_out[0].dtype)
229
+ xp = get_array_module(new_out[0])
230
+ self._data_res_arr = xp.asarray(list(new_out), dtype=new_out[0].dtype)
229
231
 
230
232
  def __getitem__(self, index: tuple) -> np.ndarray:
231
233
  """Index this class directly in ``self.data_res_arr``."""
lisatools/diagnostic.py CHANGED
@@ -95,7 +95,7 @@ def inner_product(
95
95
  "The two signals are two different lengths. Must be the same length."
96
96
  )
97
97
 
98
- freqs = sig1.f_arr
98
+ freqs = xp.asarray(sig1.f_arr)
99
99
 
100
100
  # get psd weighting
101
101
  if not isinstance(psd, SensitivityMatrix):
@@ -192,6 +192,17 @@ def inner_product(
192
192
  raise ValueError("Normalize must be True, False, 'sig1', or 'sig2'.")
193
193
 
194
194
  out /= normalization_value
195
+
196
+ # remove from cupy if needed
197
+ try:
198
+ out = out.item()
199
+ except AttributeError:
200
+ pass
201
+
202
+ # add copy function to complex value for compatibility
203
+ if complex:
204
+ out = np.complex128(out)
205
+
195
206
  return out
196
207
 
197
208
 
lisatools/sensitivity.py CHANGED
@@ -17,7 +17,7 @@ except (ModuleNotFoundError, ImportError):
17
17
  import numpy as cp
18
18
 
19
19
  from . import detector as lisa_models
20
- from .utils.utility import AET
20
+ from .utils.utility import AET, get_array_module
21
21
  from .utils.constants import *
22
22
  from .stochastic import (
23
23
  StochasticContribution,
@@ -638,8 +638,9 @@ class SensitivityMatrix:
638
638
  else:
639
639
  raise ValueError
640
640
 
641
+ xp = get_array_module(new_out[0])
641
642
  # setup in array form
642
- self._sens_mat = np.asarray(list(new_out), dtype=float).reshape(
643
+ self._sens_mat = xp.asarray(list(new_out), dtype=float).reshape(
643
644
  self.return_shape + (-1,)
644
645
  )
645
646