pspipe 0.9__tar.gz → 0.10__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 (34) hide show
  1. pspipe-0.10/PKG-INFO +110 -0
  2. pspipe-0.10/README.md +69 -0
  3. {pspipe-0.9 → pspipe-0.10}/pspipe/database.py +219 -10
  4. {pspipe-0.9 → pspipe-0.10}/pspipe/obsdata.py +389 -8
  5. {pspipe-0.9 → pspipe-0.10}/pspipe/settings.py +17 -0
  6. {pspipe-0.9 → pspipe-0.10}/pspipe/tasks.py +8 -5
  7. {pspipe-0.9 → pspipe-0.10}/pyproject.toml +8 -1
  8. pspipe-0.9/PKG-INFO +0 -60
  9. pspipe-0.9/README.md +0 -25
  10. {pspipe-0.9 → pspipe-0.10}/LICENSE +0 -0
  11. {pspipe-0.9 → pspipe-0.10}/pspipe/__init__.py +0 -0
  12. {pspipe-0.9 → pspipe-0.10}/pspipe/templates/config/eor_bins_a12.parset +0 -0
  13. {pspipe-0.9 → pspipe-0.10}/pspipe/templates/config/eor_bins_alo.parset +0 -0
  14. {pspipe-0.9 → pspipe-0.10}/pspipe/templates/config/eor_bins_hba.parset +0 -0
  15. {pspipe-0.9 → pspipe-0.10}/pspipe/templates/config/eor_bins_nenufar.parset +0 -0
  16. {pspipe-0.9 → pspipe-0.10}/pspipe/templates/config/flagger.parset +0 -0
  17. {pspipe-0.9 → pspipe-0.10}/pspipe/templates/config/flagger_pre_combine.parset +0 -0
  18. {pspipe-0.9 → pspipe-0.10}/pspipe/templates/config/gpr_config_a12.parset +0 -0
  19. {pspipe-0.9 → pspipe-0.10}/pspipe/templates/config/gpr_config_hba.parset +0 -0
  20. {pspipe-0.9 → pspipe-0.10}/pspipe/templates/config/gpr_config_nenufar.parset +0 -0
  21. {pspipe-0.9 → pspipe-0.10}/pspipe/templates/config/gpr_config_v.parset +0 -0
  22. {pspipe-0.9 → pspipe-0.10}/pspipe/templates/config/ps_config_a12.parset +0 -0
  23. {pspipe-0.9 → pspipe-0.10}/pspipe/templates/config/ps_config_alo.parset +0 -0
  24. {pspipe-0.9 → pspipe-0.10}/pspipe/templates/config/ps_config_hba.parset +0 -0
  25. {pspipe-0.9 → pspipe-0.10}/pspipe/templates/config/ps_config_nenufar.parset +0 -0
  26. {pspipe-0.9 → pspipe-0.10}/pspipe/templates/default_a12.toml +0 -0
  27. {pspipe-0.9 → pspipe-0.10}/pspipe/templates/default_alo.toml +0 -0
  28. {pspipe-0.9 → pspipe-0.10}/pspipe/templates/default_hba.toml +0 -0
  29. {pspipe-0.9 → pspipe-0.10}/pspipe/templates/default_nenufar.toml +0 -0
  30. {pspipe-0.9 → pspipe-0.10}/pspipe/templates/default_settings.toml +0 -0
  31. {pspipe-0.9 → pspipe-0.10}/pspipe/tools/__init__.py +0 -0
  32. {pspipe-0.9 → pspipe-0.10}/pspipe/tools/psdb.py +0 -0
  33. {pspipe-0.9 → pspipe-0.10}/pspipe/tools/pspipe.py +0 -0
  34. {pspipe-0.9 → pspipe-0.10}/pspipe/utils.py +0 -0
pspipe-0.10/PKG-INFO ADDED
@@ -0,0 +1,110 @@
1
+ Metadata-Version: 2.4
2
+ Name: pspipe
3
+ Version: 0.10
4
+ Summary: Power spectra pipeline for Cosmic Dawn, Epoch of Reionization radio interferometric experiments
5
+ License-Expression: GPL-3.0-or-later
6
+ License-File: LICENSE
7
+ Author: Florent Mertens
8
+ Author-email: florent.mertens@gmail.com
9
+ Requires-Python: >=3.10,<4.0
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.10
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Programming Language :: Python :: 3.14
16
+ Provides-Extra: dev
17
+ Provides-Extra: docs
18
+ Provides-Extra: ml-gpr
19
+ Requires-Dist: astropy (>6.0)
20
+ Requires-Dist: click (>=8.0)
21
+ Requires-Dist: libpipe (>=0.6)
22
+ Requires-Dist: myst-parser (>=2) ; extra == "docs"
23
+ Requires-Dist: ps-eor (>=0.8)
24
+ Requires-Dist: ps-eor[ml-gpr] (>=0.8) ; extra == "ml-gpr"
25
+ Requires-Dist: pydata-sphinx-theme (>=0.15) ; extra == "docs"
26
+ Requires-Dist: pytest (>=8.0) ; extra == "dev"
27
+ Requires-Dist: pytest-cov (>=5.0) ; extra == "dev"
28
+ Requires-Dist: python-casacore (>=3.0)
29
+ Requires-Dist: ruff (==0.16.1) ; extra == "dev"
30
+ Requires-Dist: sphinx (>=7) ; extra == "docs"
31
+ Requires-Dist: sphinx-click (>=6) ; extra == "docs"
32
+ Requires-Dist: tables (>=3.2)
33
+ Requires-Dist: tabulate (>=0.8)
34
+ Requires-Dist: toml (>=0.10)
35
+ Project-URL: Documentation, https://pspipe.readthedocs.io
36
+ Project-URL: Homepage, https://gitlab.com/flomertens/pspipe
37
+ Project-URL: Issues, https://gitlab.com/flomertens/pspipe/-/issues
38
+ Project-URL: Repository, https://gitlab.com/flomertens/pspipe
39
+ Description-Content-Type: text/markdown
40
+
41
+ # pspipe
42
+
43
+ `pspipe` is the data-analysis pipeline used by the LOFAR Epoch of Reionization
44
+ and NenuFAR Cosmic Dawn projects. It turns calibrated low-frequency radio
45
+ MeasurementSets into images, weighted Kelvin visibility cubes, power spectra,
46
+ and foreground-separated products. It tracks observations and processing
47
+ revisions so that large, multi-night analyses remain reproducible.
48
+
49
+ It provides two commands:
50
+
51
+ - `psdb` creates configurations and manages observations and processing
52
+ revisions;
53
+ - `pspipe` runs processing tasks on observations registered in that database.
54
+
55
+ The pipeline uses [WSClean](https://wsclean.readthedocs.io) for imaging and
56
+ [`ps_eor`](https://ps-eor.readthedocs.io) for cubes, flagging, power spectra,
57
+ and ML-GPR. Optional MeasurementSet-processing tasks also call
58
+ [DP3](https://dp3.readthedocs.io) and
59
+ [NenuCal](https://nenucal-cd.readthedocs.io).
60
+
61
+ ## Documentation
62
+
63
+ The [pspipe documentation](https://pspipe.readthedocs.io/en/latest/) follows
64
+ the complete workflow from installation and calibrated MeasurementSets to
65
+ images, visibility cubes, power spectra, multi-night combinations, and
66
+ foreground removal. New users should begin with the
67
+ [getting-started page](https://pspipe.readthedocs.io/en/latest/getting_started.html)
68
+ and then follow the
69
+ [user guide](https://pspipe.readthedocs.io/en/latest/user_guide/index.html).
70
+
71
+ The documentation also includes the full configuration, command-line, and
72
+ Python API references.
73
+
74
+ ## Installation
75
+
76
+ `pspipe` requires Python 3.10 or newer:
77
+
78
+ ```bash
79
+ pip install pspipe
80
+ ```
81
+
82
+ For ML-GPR:
83
+
84
+ ```bash
85
+ pip install "pspipe[ml-gpr]"
86
+ ```
87
+
88
+ ## Minimal workflow
89
+
90
+ After installation, create a workspace, register an observation, make its
91
+ images, and convert them to visibility cubes:
92
+
93
+ ```bash
94
+ mkdir pspipe-analysis && cd pspipe-analysis
95
+ psdb init nenufar /path/to/analysis-data first_run
96
+ psdb add_obs first_run.toml NIGHT_001 -m /path/to/ms_lists/NIGHT_001
97
+ psdb list_all_obs first_run.toml
98
+ pspipe image first_run.toml NIGHT_001
99
+ psdb list_rev_img first_run.toml -o NIGHT_001
100
+ pspipe gen_vis_cube first_run.toml NIGHT_001
101
+ ```
102
+
103
+ Review the generated configuration before running: in particular the
104
+ MeasurementSet data column, image and cube UV ranges, field of view, frequency
105
+ bins, window, and primary beam. Inspect the FITS images and visibility cubes
106
+ between stages; the separate commands above make those validation gates
107
+ explicit. Once a setup is established, tasks can be chained with commas.
108
+ The user guide continues from this point by loading the visibility data and
109
+ producing power spectra from Python.
110
+
pspipe-0.10/README.md ADDED
@@ -0,0 +1,69 @@
1
+ # pspipe
2
+
3
+ `pspipe` is the data-analysis pipeline used by the LOFAR Epoch of Reionization
4
+ and NenuFAR Cosmic Dawn projects. It turns calibrated low-frequency radio
5
+ MeasurementSets into images, weighted Kelvin visibility cubes, power spectra,
6
+ and foreground-separated products. It tracks observations and processing
7
+ revisions so that large, multi-night analyses remain reproducible.
8
+
9
+ It provides two commands:
10
+
11
+ - `psdb` creates configurations and manages observations and processing
12
+ revisions;
13
+ - `pspipe` runs processing tasks on observations registered in that database.
14
+
15
+ The pipeline uses [WSClean](https://wsclean.readthedocs.io) for imaging and
16
+ [`ps_eor`](https://ps-eor.readthedocs.io) for cubes, flagging, power spectra,
17
+ and ML-GPR. Optional MeasurementSet-processing tasks also call
18
+ [DP3](https://dp3.readthedocs.io) and
19
+ [NenuCal](https://nenucal-cd.readthedocs.io).
20
+
21
+ ## Documentation
22
+
23
+ The [pspipe documentation](https://pspipe.readthedocs.io/en/latest/) follows
24
+ the complete workflow from installation and calibrated MeasurementSets to
25
+ images, visibility cubes, power spectra, multi-night combinations, and
26
+ foreground removal. New users should begin with the
27
+ [getting-started page](https://pspipe.readthedocs.io/en/latest/getting_started.html)
28
+ and then follow the
29
+ [user guide](https://pspipe.readthedocs.io/en/latest/user_guide/index.html).
30
+
31
+ The documentation also includes the full configuration, command-line, and
32
+ Python API references.
33
+
34
+ ## Installation
35
+
36
+ `pspipe` requires Python 3.10 or newer:
37
+
38
+ ```bash
39
+ pip install pspipe
40
+ ```
41
+
42
+ For ML-GPR:
43
+
44
+ ```bash
45
+ pip install "pspipe[ml-gpr]"
46
+ ```
47
+
48
+ ## Minimal workflow
49
+
50
+ After installation, create a workspace, register an observation, make its
51
+ images, and convert them to visibility cubes:
52
+
53
+ ```bash
54
+ mkdir pspipe-analysis && cd pspipe-analysis
55
+ psdb init nenufar /path/to/analysis-data first_run
56
+ psdb add_obs first_run.toml NIGHT_001 -m /path/to/ms_lists/NIGHT_001
57
+ psdb list_all_obs first_run.toml
58
+ pspipe image first_run.toml NIGHT_001
59
+ psdb list_rev_img first_run.toml -o NIGHT_001
60
+ pspipe gen_vis_cube first_run.toml NIGHT_001
61
+ ```
62
+
63
+ Review the generated configuration before running: in particular the
64
+ MeasurementSet data column, image and cube UV ranges, field of view, frequency
65
+ bins, window, and primary beam. Inspect the FITS images and visibility cubes
66
+ between stages; the separate commands above make those validation gates
67
+ explicit. Once a setup is established, tasks can be chained with commas.
68
+ The user guide continues from this point by loading the visibility data and
69
+ producing power spectra from Python.