-
Notifications
You must be signed in to change notification settings - Fork 23
Z bin refactoring #1125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Z bin refactoring #1125
Changes from all commits
4755d3b
baf1fc3
fcac517
9c42217
3197c01
815aa71
7ad56cc
af3a7e9
7d08340
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These lines will cause the export code to fail for previously generated correlations. While this may not be common, it could still lead to issues. For backward compatibility, I suggest guarding this block so it only executes when ZMIN and ZMAX are present in the headers. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -112,24 +112,6 @@ def main(cmdargs=None): | |
| help=('Coefficient multiplying np and nt to get finner binning for the ' | ||
| 'model')) | ||
|
|
||
| parser.add_argument( | ||
| '--z-cut-min', | ||
| type=float, | ||
| default=0., | ||
| required=False, | ||
| help=('Use only pairs of forest x object with the mean of the last ' | ||
| 'absorber redshift and the object redshift larger than ' | ||
| 'z-cut-min')) | ||
|
|
||
| parser.add_argument( | ||
| '--z-cut-max', | ||
| type=float, | ||
| default=10., | ||
| required=False, | ||
| help=('Use only pairs of forest x object with the mean of the last ' | ||
| 'absorber redshift and the object redshift smaller than ' | ||
| 'z-cut-max')) | ||
|
|
||
| parser.add_argument( | ||
| '--z-min-sources', | ||
| type=float, | ||
|
|
@@ -297,8 +279,6 @@ def main(cmdargs=None): | |
| cf.r_par_max = args.rp_max | ||
| cf.r_trans_max = args.rt_max | ||
| cf.r_par_min = args.rp_min | ||
| cf.z_cut_max = args.z_cut_max | ||
| cf.z_cut_min = args.z_cut_min | ||
| cf.num_bins_r_par = args.np * args.coef_binning_model | ||
| cf.num_bins_r_trans = args.nt * args.coef_binning_model | ||
| cf.num_model_bins_r_par = args.np * args.coef_binning_model | ||
|
|
@@ -509,16 +489,6 @@ def main(cmdargs=None): | |
| 'value': args.coef_binning_model, | ||
| 'comment': 'Coefficient for model binning' | ||
| }, | ||
| { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In picca_cf.py, picca_dmat.py, picca_export.py, etc. this was replaced by ZMIN and ZMAX adding the minimum and maximum redshift of pairs. Shouldn't we do the same here for consistency? |
||
| 'name': 'ZCUTMIN', | ||
| 'value': cf.z_cut_min, | ||
| 'comment': 'Minimum redshift of pairs' | ||
| }, | ||
| { | ||
| 'name': 'ZCUTMAX', | ||
| 'value': cf.z_cut_max, | ||
| 'comment': 'Maximum redshift of pairs' | ||
| }, | ||
| { | ||
| 'name': 'REJ', | ||
| 'value': cf.reject, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In picca_cf.py, picca_dmat.py, picca_export.py, etc. this was replaced by ZMIN and ZMAX adding the minimum and maximum redshift of pairs. Shouldn't we do the same here for consistency?