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

Findbaddata #25

Merged
merged 5 commits into from
Oct 17, 2019
Merged

Findbaddata #25

merged 5 commits into from
Oct 17, 2019

Conversation

amcody
Copy link
Contributor

@amcody amcody commented Oct 16, 2019

K2mosaic was balking at a particular tpf that has all the time values set to nan but valid fluxes. THerefore I have changed the bad data identification test to look for QUALITY flags including 65536 ("no data") instead of looking for instances of time == NAN. This seems to work now. You can merge this PR instead of the previous one if you like.

@@ -115,7 +115,7 @@ def add_pixels(self, tpf):
idx = self.cadenceno - tpfdata["CADENCENO"][0]

# When time is nan, we know that there is no available data.
Copy link
Member

@barentsen barentsen Oct 17, 2019

Choose a reason for hiding this comment

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

One minor suggestion: let's update the comment to explain the new statement, e.g.:

Suggested change
# When time is nan, we know that there is no available data.
# When quality flag 65536 is raised, there is no data and the times are NaN.

@barentsen
Copy link
Member

Thank you!

@barentsen barentsen merged commit 6abfcdf into KeplerGO:master Oct 17, 2019
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