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

add rejection of frames that cannot be sky subtracted to avoid contamination of the good ones. #219

Merged
merged 3 commits into from
Apr 16, 2021

Conversation

KathleenLabrie
Copy link
Contributor

Discussed at length with Chris. Seems to work on my test sequence that highlight the problem in the first place.

@codecov
Copy link

codecov bot commented Apr 10, 2021

Codecov Report

Merging #219 (119f0a2) into release/3.0.x (2d899b3) will decrease coverage by 0.03%.
The diff coverage is 0.00%.

Impacted file tree graph

@@                Coverage Diff                @@
##           release/3.0.x     #219      +/-   ##
=================================================
- Coverage          45.59%   45.56%   -0.04%     
=================================================
  Files                261      261              
  Lines              22305    22318      +13     
=================================================
- Hits               10171    10170       -1     
- Misses             12134    12148      +14     
Impacted Files Coverage Δ
geminidr/core/primitives_preprocess.py 8.57% <0.00%> (-0.20%) ⬇️
geminidr/core/primitives_resample.py 44.15% <ø> (-0.37%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2d899b3...119f0a2. Read the comment docs.

@KathleenLabrie KathleenLabrie added algorithm Issues relating to algorithms enhancement Performance or usage improvement severity-routine Needs to be fixed urgency-medium Somewhat normal urgency labels Apr 15, 2021
@KathleenLabrie KathleenLabrie added this to the v3.0.0 milestone Apr 15, 2021
@chris-simpson
Copy link
Contributor

The code looks OK but I don't like the term "sky table" in the log, as this has no meaning for the user. (And it's not really a table, it's just a list but we store it as a Table object because that's the only way to propagate it.) I'd prefer something like

Sky frames could not be associated to any input frames. Sky subtraction will not be possible.

and

{ad.filename} does not have any associated sky frames so cannot be sky-subtracted, moving to "no_skies" stream

[use an f-string like the cool kidz]

@chris-simpson chris-simpson merged commit a98ee3a into release/3.0.x Apr 16, 2021
@KathleenLabrie KathleenLabrie deleted the feature/cleanskysub branch August 11, 2022 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
algorithm Issues relating to algorithms enhancement Performance or usage improvement severity-routine Needs to be fixed urgency-medium Somewhat normal urgency
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants