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.
Files changed (35) hide show
  1. {pspipe-0.7 → pspipe-0.7.2}/PKG-INFO +1 -1
  2. {pspipe-0.7 → pspipe-0.7.2}/pspipe/obsdata.py +11 -1
  3. {pspipe-0.7 → pspipe-0.7.2}/pspipe/utils.py +2 -0
  4. {pspipe-0.7 → pspipe-0.7.2}/pyproject.toml +1 -1
  5. {pspipe-0.7 → pspipe-0.7.2}/LICENSE +0 -0
  6. {pspipe-0.7 → pspipe-0.7.2}/README.md +0 -0
  7. {pspipe-0.7 → pspipe-0.7.2}/pspipe/__init__.py +0 -0
  8. {pspipe-0.7 → pspipe-0.7.2}/pspipe/database.py +0 -0
  9. {pspipe-0.7 → pspipe-0.7.2}/pspipe/settings.py +0 -0
  10. {pspipe-0.7 → pspipe-0.7.2}/pspipe/tasks.py +0 -0
  11. {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/eor_bins_a12.parset +0 -0
  12. {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/eor_bins_alo.parset +0 -0
  13. {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/eor_bins_hba.parset +0 -0
  14. {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/eor_bins_nenufar.parset +0 -0
  15. {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/flagger.parset +0 -0
  16. {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/flagger_pre_combine.parset +0 -0
  17. {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/gpr_config_a12.parset +0 -0
  18. {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/gpr_config_hba.parset +0 -0
  19. {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/gpr_config_nenufar.parset +0 -0
  20. {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/gpr_config_v.parset +0 -0
  21. {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/ps_config_a12.parset +0 -0
  22. {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/ps_config_alo.parset +0 -0
  23. {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/ps_config_hba.parset +0 -0
  24. {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/config/ps_config_nenufar.parset +0 -0
  25. {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/default_a12.toml +0 -0
  26. {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/default_alo.toml +0 -0
  27. {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/default_hba.toml +0 -0
  28. {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/default_nenufar.toml +0 -0
  29. {pspipe-0.7 → pspipe-0.7.2}/pspipe/templates/default_settings.toml +0 -0
  30. {pspipe-0.7 → pspipe-0.7.2}/pspipe/tests/__init__.py +0 -0
  31. {pspipe-0.7 → pspipe-0.7.2}/pspipe/tests/test_settings.py +0 -0
  32. {pspipe-0.7 → pspipe-0.7.2}/pspipe/tests/test_utils.py +0 -0
  33. {pspipe-0.7 → pspipe-0.7.2}/pspipe/tools/__init__.py +0 -0
  34. {pspipe-0.7 → pspipe-0.7.2}/pspipe/tools/psdb.py +0 -0
  35. {pspipe-0.7 → pspipe-0.7.2}/pspipe/tools/pspipe.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pspipe
3
- Version: 0.7
3
+ Version: 0.7.2
4
4
  Summary: Power spectra pipeline for Cosmic Dawn, Epoch of Reionization radio interferometric experiments
5
5
  Author: Florent Mertens
6
6
  Author-email: florent.mertens@gmail.com
@@ -4,10 +4,14 @@
4
4
 
5
5
  import os
6
6
 
7
- from ps_eor import pspec, datacube, flagger, fgfit, ml_gpr
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)
@@ -2,6 +2,8 @@
2
2
  #
3
3
  # Author: F. Mertens
4
4
 
5
+ import os
6
+
5
7
  import itertools
6
8
 
7
9
  import astropy.time as at
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
4
4
 
5
5
  [project]
6
6
  name = "pspipe"
7
- version = "0.7"
7
+ version = "0.7.2"
8
8
  description = "Power spectra pipeline for Cosmic Dawn, Epoch of Reionization radio interferometric experiments"
9
9
  readme = "README.md"
10
10
  authors = [
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