lisaanalysistools 1.0.12__cp312-cp312-macosx_10_9_x86_64.whl → 1.0.13__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.12
3
+ Version: 1.0.13
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.12
69
+ Current Version: 1.0.13
70
70
 
71
71
  ## Authors/Developers
72
72
 
@@ -1,5 +1,5 @@
1
1
  lisatools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- lisatools/_version.py,sha256=1Lp_ETV00qR2o-39OIKWoOpdUW6gApuQthdWT5LgYeg,124
2
+ lisatools/_version.py,sha256=XRl2hGMUBZ0ckRA_03jI5CQSKqwDjNsjtDrHMGr_g9U,124
3
3
  lisatools/analysiscontainer.py,sha256=UQft6SvyDueDtuL1H1auiEzG5IEsFwRiiXf_0DHtu5U,16289
4
4
  lisatools/datacontainer.py,sha256=oCvSbGFYWKUpAPfCHdXut-5-VEzoBs560ZtxFSUOPes,9927
5
5
  lisatools/detector.py,sha256=1ATZToFoy14U3ACTyver2x9DKavJ3l6ToU6nUSGSTmo,21161
@@ -27,7 +27,7 @@ lisatools/sources/defaultresponse.py,sha256=2SMbRf-UwgLNaA89tIANjw4BCKh1XEuRg5mg
27
27
  lisatools/sources/utils.py,sha256=5blfG4ozaN1QgOZR49o1vDH6E9_x0g1dNGfsRiTrVeo,14342
28
28
  lisatools/sources/waveformbase.py,sha256=JPLqLZd1e-6E3ySyXodO83nZGH8bVq2K_s8sF2Oy84w,845
29
29
  lisatools/sources/bbh/__init__.py,sha256=M3yP4eaScZZMhOucn88iiJ2WGL6zZTQI0xUEnmw4Nu8,37
30
- lisatools/sources/bbh/waveform.py,sha256=-xg2uYB8AWf233W34hxwLsnlSYPF9d7TqzNfXj95zaA,2599
30
+ lisatools/sources/bbh/waveform.py,sha256=BDLv_9_8OnTbS-jRoSyPddTD7Ca7C1_9byLPU-W_CuU,3197
31
31
  lisatools/sources/emri/__init__.py,sha256=3W0kL4bfTtZNm-wM5t6Y0TTjtZMh4fe_qDyZ6a5rLck,38
32
32
  lisatools/sources/emri/waveform.py,sha256=W7Dx_ibygF8zbz1neJzyddy7HGH0kDppDI3HKStdbqc,2422
33
33
  lisatools/sources/gb/__init__.py,sha256=GDlLi4M4QPoEdvScIyOyhTuqk0XvFM5ymhR1EE7FYXY,36
@@ -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.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,,
39
+ lisaanalysistools-1.0.13.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
40
+ lisaanalysistools-1.0.13.dist-info/METADATA,sha256=UyWSKEdohLEvNlvf5Qyj_rxAp2U8Gi1Oz1NrQ0GY2NE,4202
41
+ lisaanalysistools-1.0.13.dist-info/WHEEL,sha256=zL8OKpwMaCM_hEdCwF-bHbg5JyuZtrW4vMYNMNxkj9k,110
42
+ lisaanalysistools-1.0.13.dist-info/top_level.txt,sha256=qXUn8Xi8yvK0vr3QH0vvT5cmoccjSj-UPeKGLAxdYGo,10
43
+ lisaanalysistools-1.0.13.dist-info/RECORD,,
lisatools/_version.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = '1.0.12'
1
+ __version__ = '1.0.13'
2
2
  __copyright__ = "Michael L. Katz 2024"
3
3
  __name__ = "lisaanalysistools"
4
4
  __author__ = "Michael L. Katz"
@@ -50,7 +50,13 @@ class BBHSNRWaveform(SNRWaveform):
50
50
  self._f_arr = f_arr
51
51
 
52
52
  def __call__(
53
- self, *params: Any, return_array: Optional[bool] = False, **kwargs: Any
53
+ self,
54
+ *params: Any,
55
+ return_array: Optional[bool] = False,
56
+ mf_min: Optional[float] = 1e-4,
57
+ mf_max: Optional[float] = 0.6,
58
+ freqs: Optional[np.ndarray] = None,
59
+ **kwargs: Any
54
60
  ) -> Tuple[np.ndarray, np.ndarray, np.ndarray] | np.ndarray:
55
61
  """Generate waveforms for SNR calculations.
56
62
 
@@ -59,6 +65,10 @@ class BBHSNRWaveform(SNRWaveform):
59
65
  for :class:`BBHWaveformFD`.
60
66
  return_array: If ``True``, return ``array([A, E, T]).
61
67
  If ``False``, return (A, E, T).
68
+ mf_min: Minimum dimensionless frequency to evaluate.
69
+ mf_max: Maximum dimensionless frequency to evaluate.
70
+ freqs: If ``None``, then default will be ``np.logspace(mf_min / M, mf_max / M, 1024)``.
71
+ Otherwise, it will calulate frequencies based on this exact array.
62
72
  **kwargs: ``kwargs`` for the ``__call__`` function
63
73
  for :class:`BBHWaveformFD`.
64
74
 
@@ -71,9 +81,14 @@ class BBHSNRWaveform(SNRWaveform):
71
81
  m1 = params[0]
72
82
  m2 = params[1]
73
83
 
74
- min_f = 1e-4 / (MTSUN_SI * (m1 + m2))
75
- max_f = 0.6 / (MTSUN_SI * (m1 + m2))
76
- self.f_arr = np.logspace(np.log10(min_f), np.log10(max_f), 1024)
84
+ if freqs is None:
85
+ min_f = mf_min / (MTSUN_SI * (m1 + m2))
86
+ max_f = mf_max / (MTSUN_SI * (m1 + m2))
87
+ self.f_arr = np.logspace(np.log10(min_f), np.log10(max_f), 1024)
88
+
89
+ else:
90
+ assert isinstance(freqs, np.ndarray)
91
+ self.f_arr = freqs
77
92
 
78
93
  # generate waveform with proper settings
79
94
  AET = self.wave_gen(