Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cosmo_val/cat_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,7 @@ GLASS_mock_validation:
star_flag: FLAG_STAR_HSM
star_size: SIGMA_STAR_HSM
hdu: 1
path: unions_shapepipe_psf_2024_v1.6.a.fits
path: ../../../../n17data/UNIONS/WL/v1.6.x/unions_shapepipe_psf_2024_v1.6.a.fits
Comment thread
sachaguer marked this conversation as resolved.
ra_col: RA
dec_col: Dec
e1_PSF_col: E1_PSF_HSM
Expand Down
13 changes: 11 additions & 2 deletions src/sp_validation/cosmo_val/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,11 +483,20 @@ def results_objectwise(self):
self._results_objectwise = self.init_results(objectwise=True)
return self._results_objectwise

def basename(self, version, treecorr_config=None, npatch=None):
def basename(
self,
version,
tomo_bin_a="all",
tomo_bin_b=None,
treecorr_config=None,
npatch=None,
):
cfg = treecorr_config or self.treecorr_config
patches = npatch or self.npatch
tomo_bin_a_str = f"tomo_bin_{tomo_bin_a}"
tomo_bin_b_str = f"_tomo_bin_{tomo_bin_b}" if tomo_bin_b is not None else ""
return (
f"{version}_minsep={cfg['min_sep']}"
f"{version}_{tomo_bin_a_str}{tomo_bin_b_str}_minsep={cfg['min_sep']}"
f"_maxsep={cfg['max_sep']}"
Comment on lines +496 to 500

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will have to be checked whether new outputs are read differently or if the call to open the file relies on the basename function as well.

f"_nbins={cfg['nbins']}"
f"_npatch={patches}"
Expand Down
2 changes: 1 addition & 1 deletion src/sp_validation/cosmo_val/pseudo_cl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@ def get_ell_factor(ell):
# Better jittering: symmetric around original ell values
jitter_fraction = (j - (len(versions) - 1) / 2) * offset
jittered_ell = ell + jitter_fraction * ell_widths
ell_factor_ = get_ell_factor(jittered_ell)
ell_factor_ = get_ell_factor(ell)

for pol in pol_list:
pol_color = self.get_pol_color(ver_color, pol, pol_list)
Expand Down
Loading
Loading