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

Background returns incorrect units #213

Open
cshanahan1 opened this issue Feb 29, 2024 · 1 comment
Open

Background returns incorrect units #213

cshanahan1 opened this issue Feb 29, 2024 · 1 comment

Comments

@cshanahan1
Copy link
Contributor

The following should return flux in DN, not DN**2:

img = np.tile((np.arange(1., 13)), (13, 1)) * u.DN
trace = FlatTrace(img, 2)
background = Background(img, trace)
background.bkg_image()

@hpparvi
Copy link
Contributor

hpparvi commented Nov 5, 2024

I think you fixed this in #221. Trying to reproduce the issue with the latest commit in main (2cc466d) returns the flux correctly in DN.

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

No branches or pull requests

2 participants