lisaanalysistools 1.0.0__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.

Files changed (37) hide show
  1. lisaanalysistools-1.0.0.dist-info/LICENSE +201 -0
  2. lisaanalysistools-1.0.0.dist-info/METADATA +80 -0
  3. lisaanalysistools-1.0.0.dist-info/RECORD +37 -0
  4. lisaanalysistools-1.0.0.dist-info/WHEEL +5 -0
  5. lisaanalysistools-1.0.0.dist-info/top_level.txt +2 -0
  6. lisatools/__init__.py +0 -0
  7. lisatools/_version.py +4 -0
  8. lisatools/analysiscontainer.py +438 -0
  9. lisatools/cutils/detector.cpython-312-darwin.so +0 -0
  10. lisatools/datacontainer.py +292 -0
  11. lisatools/detector.py +410 -0
  12. lisatools/diagnostic.py +976 -0
  13. lisatools/glitch.py +193 -0
  14. lisatools/sampling/__init__.py +0 -0
  15. lisatools/sampling/likelihood.py +882 -0
  16. lisatools/sampling/moves/__init__.py +0 -0
  17. lisatools/sampling/moves/gbgroupstretch.py +53 -0
  18. lisatools/sampling/moves/gbmultipletryrj.py +1287 -0
  19. lisatools/sampling/moves/gbspecialgroupstretch.py +671 -0
  20. lisatools/sampling/moves/gbspecialstretch.py +1836 -0
  21. lisatools/sampling/moves/mbhspecialmove.py +286 -0
  22. lisatools/sampling/moves/placeholder.py +16 -0
  23. lisatools/sampling/moves/skymodehop.py +110 -0
  24. lisatools/sampling/moves/specialforegroundmove.py +564 -0
  25. lisatools/sampling/prior.py +508 -0
  26. lisatools/sampling/stopping.py +320 -0
  27. lisatools/sampling/utility.py +324 -0
  28. lisatools/sensitivity.py +888 -0
  29. lisatools/sources/__init__.py +0 -0
  30. lisatools/sources/emri/__init__.py +1 -0
  31. lisatools/sources/emri/tdiwaveform.py +72 -0
  32. lisatools/stochastic.py +291 -0
  33. lisatools/utils/__init__.py +0 -0
  34. lisatools/utils/constants.py +40 -0
  35. lisatools/utils/multigpudataholder.py +730 -0
  36. lisatools/utils/pointeradjust.py +106 -0
  37. lisatools/utils/utility.py +240 -0
File without changes
@@ -0,0 +1,53 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ import numpy as np
4
+ from scipy import stats
5
+ import warnings
6
+
7
+ try:
8
+ import cupy as xp
9
+
10
+ gpu_available = True
11
+ except ModuleNotFoundError:
12
+ import numpy as xp
13
+
14
+ gpu_available = False
15
+
16
+ from eryn.moves import GroupStretchMove
17
+ from eryn.prior import ProbDistContainer
18
+ from eryn.utils.utility import groups_from_inds
19
+ from .gbmultipletryrj import GBMutlipleTryRJ
20
+
21
+ from ...diagnostic import inner_product
22
+
23
+
24
+ __all__ = ["GBGroupStretchMove"]
25
+
26
+
27
+ # MHMove needs to be to the left here to overwrite GBBruteRejectionRJ RJ proposal method
28
+ class GBGroupStretchMove(GroupStretchMove, GBMutlipleTryRJ):
29
+ """Generate Revesible-Jump proposals for GBs with try-force rejection
30
+
31
+ Will use gpu if template generator uses GPU.
32
+
33
+ Args:
34
+ priors (object): :class:`ProbDistContainer` object that has ``logpdf``
35
+ and ``rvs`` methods.
36
+
37
+ """
38
+
39
+ def __init__(
40
+ self,
41
+ gb_args,
42
+ gb_kwargs,
43
+ start_ind_limit=10,
44
+ *args,
45
+ **kwargs
46
+ ):
47
+
48
+ self.name = "gbgroupstretch"
49
+ self.start_ind_limit = start_ind_limit
50
+ GBMutlipleTryRJ.__init__(self, *gb_args, **gb_kwargs)
51
+ GroupStretchMove.__init__(self, *args, **kwargs)
52
+
53
+