pspipe 0.7__tar.gz → 0.7.2__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.
- {pspipe-0.7 → pspipe-0.7.2}/PKG-INFO +1 -1
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/obsdata.py +11 -1
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/utils.py +2 -0
- {pspipe-0.7 → pspipe-0.7.2}/pyproject.toml +1 -1
- {pspipe-0.7 → pspipe-0.7.2}/LICENSE +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/README.md +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/__init__.py +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/database.py +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/settings.py +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/tasks.py +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/eor_bins_a12.parset +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/eor_bins_alo.parset +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/eor_bins_hba.parset +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/eor_bins_nenufar.parset +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/flagger.parset +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/flagger_pre_combine.parset +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/gpr_config_a12.parset +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/gpr_config_hba.parset +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/gpr_config_nenufar.parset +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/gpr_config_v.parset +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/ps_config_a12.parset +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/ps_config_alo.parset +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/ps_config_hba.parset +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/ps_config_nenufar.parset +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/default_a12.toml +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/default_alo.toml +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/default_hba.toml +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/default_nenufar.toml +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/default_settings.toml +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/tests/__init__.py +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/tests/test_settings.py +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/tests/test_utils.py +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/tools/__init__.py +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/tools/psdb.py +0 -0
- {pspipe-0.7 → pspipe-0.7.2}/pspipe/tools/pspipe.py +0 -0
|
@@ -4,10 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import os
|
|
6
6
|
|
|
7
|
-
from ps_eor import pspec, datacube, flagger
|
|
7
|
+
from ps_eor import pspec, datacube, flagger
|
|
8
8
|
|
|
9
9
|
from . import database
|
|
10
10
|
|
|
11
|
+
# Lazy loaded:
|
|
12
|
+
# from ps_eor import fgfit
|
|
13
|
+
# from ps_eor import ml_gpr
|
|
14
|
+
|
|
11
15
|
|
|
12
16
|
class ObsData(object):
|
|
13
17
|
|
|
@@ -90,6 +94,8 @@ class ObsData(object):
|
|
|
90
94
|
return stokes in self.data or os.path.exists(self.get_h5_file(stokes))
|
|
91
95
|
|
|
92
96
|
def get_gpr_res(self, eor_bin, umin=50, umax=250, stokes='I', name=''):
|
|
97
|
+
from ps_eor import fgfit
|
|
98
|
+
|
|
93
99
|
path = os.path.join(os.path.dirname(self.get_h5_file(stokes)), name, f'eor{eor_bin}_u{umin}-{umax}')
|
|
94
100
|
i_res = fgfit.GprForegroundResult.load(path, f'gpr_res_{stokes}')
|
|
95
101
|
i_noise = datacube.CartDataCube.load(os.path.join(path, 'gpr_res_I.noise.h5'))
|
|
@@ -101,6 +107,8 @@ class ObsData(object):
|
|
|
101
107
|
return os.path.join(os.path.dirname(self.get_h5_file('I')), name, f'eor{eor_bin}_u{umin}-{umax}')
|
|
102
108
|
|
|
103
109
|
def get_ml_gpr_res(self, eor_bin, umin=50, umax=250, name='', sampler_method='mcmc'):
|
|
110
|
+
from ps_eor import ml_gpr
|
|
111
|
+
|
|
104
112
|
path = self.get_ml_gpr_path(eor_bin, umin=umin, umax=umax, name=name, sampler_method=sampler_method)
|
|
105
113
|
return ml_gpr.MLGPRResult.load(path, 'ml_gpr_res_I', sampler_method=sampler_method)
|
|
106
114
|
|
|
@@ -109,6 +117,8 @@ class ObsData(object):
|
|
|
109
117
|
return os.path.join(os.path.dirname(self.get_h5_file('I')), name, d)
|
|
110
118
|
|
|
111
119
|
def get_ml_gpr_inj_res(self, eor_bin, var_21_over_noise, x1, x2, umin=50, umax=250, name='', sampler_method='mcmc'):
|
|
120
|
+
from ps_eor import ml_gpr
|
|
121
|
+
|
|
112
122
|
path = self.get_ml_gpr_inj_path(eor_bin, var_21_over_noise=var_21_over_noise, x1=x1, x2=x2, umin=umin, umax=umax, name=name)
|
|
113
123
|
data_inj = datacube.CartDataCube.load(os.path.join(path, 'c_injected.h5'))
|
|
114
124
|
return ml_gpr.MLGPRInjResult.load(path, 'ml_gpr_res_I', data_inj, sampler_method=sampler_method)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|