Skip to content
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

Fix deltas rebin #967

Merged
merged 4 commits into from
Jan 20, 2023
Merged

Fix deltas rebin #967

merged 4 commits into from
Jan 20, 2023

Conversation

cramirezpe
Copy link
Contributor

Previous implementation would fail if one of the first two pixels in the deltas field is masked.

Now, dwave (width of deltas) is read from the header of the deltas file, avoiding this problem.

It works with both ImageHDU and TableHDU formats, but only for linear deltas (as before).

py/picca/data.py Outdated
@@ -958,6 +958,7 @@ class Delta(QSO):
Neighbouring deltas/quasars
fname: string or None
String identifying Delta as part of a group
delta_log_lambda
Copy link
Collaborator

Choose a reason for hiding this comment

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

add explanation and type

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry I copied this line when it was already there.

@iprafols
Copy link
Collaborator

just a minor change, otherwise it's fine

@cramirezpe
Copy link
Contributor Author

I modified the hdul.close() position as well.

@iprafols iprafols merged commit 81180d5 into master Jan 20, 2023
@iprafols iprafols deleted the fix_deltas_rebin branch January 20, 2023 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants