Commit c2fff9b
Code cleanup (#14)
General reorganization and clean up of code to further generalize away from SPIDER-only applicability.
Many options have changed so submit scripts must change.
* Rename xfaster_tools to the more specific spec_tools.
Now contains only functions for generating and manipulating model power spectra.
Also move expand_qb function to parse_tools since that's where all the matrix
handling code lives.
* simplify config file option handling
* simplify attribute storage
* construct and store expanded transfer function in get_transfer
* simplify planck HM map file selection using dicts
* simplify residual cross terms as a single cls_res attribute
* simplify template noise terms as a single cls_template_noise attribute
* remove sims_attr dictionaries and just use local variables
* move the meat of parse_data to load_and_parse
* increment data version and maintain backward compatibility for reading v1
data from disk
* rename template noise and planck subtraction options
cleanup planck subtraction
* cleanup get_files function and associated attributes
also load data sim ("fake data") files with all the others in preparation for
merging all data construction functions into one
* bug fix in data sim file parsing
* bug fixes found when running the tutorial notebook
* Replace xfaster_tools with spec_tools in docs
* documentation
* bug fix
* move all data construction functionality into get_masked_data
* merge get_masked_fake_data int get_masked_data with a common set of options
* include ensemble_mean and ensemble_median handling in get_masked_data
* store data and bandpower output files with a consistent file naming scheme
* Fixing bugs up through masks
* fix bug-- directly compare lists
* Don't check for equal number of sim files per half for fake data sims
* bug fixes in computing transfer function and loading data
* consistent organization of xfaster_run options
* sort keyword arguments to xfaster_run() by section
* rearrange common and bin_def options more logically
* parse xfaster_run docstring to set CLI help menu
* use generic references to uncorrelated templates and reference signals, rather than planck halfmission datasets
* Fixing bugs in template noise spectrum computation
* Fixing tranfser function bugs; nulls work now
* handle lists of bin widths in xfaster_run
* rename qb_file options for clarity, and to avoid confusion with original behavior
* Add sim_data_components to list arguments that get parsed right if using xfaster_submit
* Add EB/TB fields to qb_transfer so it doesn't force recompute every time
* don't save data xcorr files by default
* Fix bugs with using qb_file-- now null sims also have now bugs
* Fix bugs in template subtraction
* Don't break setting up residuals if not using noise in sims
* Updating gcorr options to work with new code
* Fix gcorr config files to not have comments on same line as variable
* Hopefully fixing CI
* parse lists of bin widths properly, undo whitespace change
* update notebook with changes to get_masked_data
* fix error message
* docs tweaks
* more general handling of tag list parameters
more docstring cleanup
* Have alpha prior default to None ie, only fit r by default
Co-authored-by: Anne Gambrel <anne.gambrel@gmail.com>
Co-authored-by: Anne E. Gambrel <agambrel@princeton.edu>1 parent 2db2320 commit c2fff9b
File tree
15 files changed
+2299
-2919
lines changed- .github/workflows
- docs
- notebooks
- example
- scripts/gcorr
- xfaster
15 files changed
+2299
-2919
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 16 | | |
20 | 17 | | |
21 | 18 | | |
| |||
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 25 | | |
32 | 26 | | |
33 | 27 | | |
34 | | - | |
| 28 | + | |
35 | 29 | | |
36 | 30 | | |
37 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
179 | 181 | | |
180 | 182 | | |
181 | 183 | | |
182 | | - | |
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
187 | 188 | | |
188 | | - | |
| 189 | + | |
189 | 190 | | |
190 | 191 | | |
191 | 192 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | | - | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | | - | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| 85 | + | |
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
| |||
99 | 102 | | |
100 | 103 | | |
101 | 104 | | |
102 | | - | |
| 105 | + | |
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
| |||
0 commit comments