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

BUG: fix passing single Trace object to Background #146

Merged
merged 1 commit into from
Oct 14, 2022

Conversation

kecnry
Copy link
Member

@kecnry kecnry commented Oct 13, 2022

  • Background(image, trace, width) used to expect trace to be an iterable and interpret it as a list of floats, each representing a trace (and therefore raise an error about window overlaps). This syntax is now handled as expected: as a single background window, equivalent to Background(image, [trace], width).

* Background(image, trace, width) used to expect trace to be an iterable and interpret the trace as a list of floats, each representing a trace (and therefore raise an error about window overlaps).  This syntax is now handled as expected.
@codecov
Copy link

codecov bot commented Oct 13, 2022

Codecov Report

Merging #146 (86d501c) into main (f8c67a9) will increase coverage by 0.09%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #146      +/-   ##
==========================================
+ Coverage   71.54%   71.63%   +0.09%     
==========================================
  Files           9        9              
  Lines         629      631       +2     
==========================================
+ Hits          450      452       +2     
  Misses        179      179              
Impacted Files Coverage Δ
specreduce/background.py 89.28% <100.00%> (+0.26%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@kecnry kecnry requested a review from ojustino October 13, 2022 19:24
Copy link
Contributor

@ojustino ojustino left a comment

Choose a reason for hiding this comment

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

Another good step on the path to robustness.

@kecnry kecnry merged commit 67b6b8b into astropy:main Oct 14, 2022
@kecnry kecnry deleted the bg-single-trace branch October 14, 2022 13:42
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.

None yet

2 participants