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.
- lisaanalysistools-1.0.0.dist-info/LICENSE +201 -0
- lisaanalysistools-1.0.0.dist-info/METADATA +80 -0
- lisaanalysistools-1.0.0.dist-info/RECORD +37 -0
- lisaanalysistools-1.0.0.dist-info/WHEEL +5 -0
- lisaanalysistools-1.0.0.dist-info/top_level.txt +2 -0
- lisatools/__init__.py +0 -0
- lisatools/_version.py +4 -0
- lisatools/analysiscontainer.py +438 -0
- lisatools/cutils/detector.cpython-312-darwin.so +0 -0
- lisatools/datacontainer.py +292 -0
- lisatools/detector.py +410 -0
- lisatools/diagnostic.py +976 -0
- lisatools/glitch.py +193 -0
- lisatools/sampling/__init__.py +0 -0
- lisatools/sampling/likelihood.py +882 -0
- lisatools/sampling/moves/__init__.py +0 -0
- lisatools/sampling/moves/gbgroupstretch.py +53 -0
- lisatools/sampling/moves/gbmultipletryrj.py +1287 -0
- lisatools/sampling/moves/gbspecialgroupstretch.py +671 -0
- lisatools/sampling/moves/gbspecialstretch.py +1836 -0
- lisatools/sampling/moves/mbhspecialmove.py +286 -0
- lisatools/sampling/moves/placeholder.py +16 -0
- lisatools/sampling/moves/skymodehop.py +110 -0
- lisatools/sampling/moves/specialforegroundmove.py +564 -0
- lisatools/sampling/prior.py +508 -0
- lisatools/sampling/stopping.py +320 -0
- lisatools/sampling/utility.py +324 -0
- lisatools/sensitivity.py +888 -0
- lisatools/sources/__init__.py +0 -0
- lisatools/sources/emri/__init__.py +1 -0
- lisatools/sources/emri/tdiwaveform.py +72 -0
- lisatools/stochastic.py +291 -0
- lisatools/utils/__init__.py +0 -0
- lisatools/utils/constants.py +40 -0
- lisatools/utils/multigpudataholder.py +730 -0
- lisatools/utils/pointeradjust.py +106 -0
- 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
|
+
|