-
Notifications
You must be signed in to change notification settings - Fork 74
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] "Counts conversion factor" and "Flux scaling" are 0 by default instead of 1 #2550
Comments
There is actually a subtle difference between 1 and 0, and 0 is the default in the code on purpose. This is not a bug. If you look at Point 8 in https://jdaviz.readthedocs.io/en/latest/imviz/plugins.html#aperture-photometry , it says, "Setting this to 1 is equivalent to not applying any scaling. This field is only used if data has a valid unit. If this field is not applicable for you, leave it at 0." tl;dr
This is because I want people to stop and think about what magnitude system they really want. I do not want people to blindly take an instrumental mag and think it is STMAG and so on. |
Same deal with counts conversion factor. Counts can be ambiguous, so 0 means I do not do it at all. And if you request for it to be done, you better know what you are doing. |
Would it be more clear if we had a switch to enable/disable and if enabled, then you can access changing the value? Or we could just be more descriptive in the hint text in the UI. |
I understand Erik's concern and I kind of agree (although it did not hit me before). |
Then we have to define it as "Any" instead of "Float", which is more processing for that one thing. |
If the concern here is just about how it is presented in the GUI, then I prefer Kyle's way with the front-end toggles. |
Let's reopen this then, I think there is definitely some improvements we could make, right? |
Once you decide how you want this done, please update the title and open a JIRA ticket. Thanks! |
Jdaviz component
Imviz
Description
"Counts conversion factor" and "Flux scaling" options of the aperture photometry plugin are 0 when you open up apphot. Both, though, seem like they should be
1
not0
to be the case of "ignore those correction factors".How to Reproduce
Expected behavior
I would have expected these two scale factors to be 1 as the no-op case, since 0 should lead to divide-by-zero errrors. It does not, so I guess
0
must be a placeholder for "ignore", but that's confusing.Browser
No response
Jupyter
IPython : 8.16.0
ipykernel : 6.25.2
ipywidgets : 8.1.1
jupyter_client : 7.0.6
jupyter_core : 5.3.2
jupyter_server : 1.24.0
jupyterlab : 4.0.6
nbclient : 0.8.0
nbconvert : 7.8.0
nbformat : 5.9.2
notebook : 7.0.4
qtconsole : 5.4.3
traitlets : 5.10.1
Software versions
Python 3.11.5 (main, Sep 2 2023, 14:16:33) [GCC 13.2.1 20230801]
The text was updated successfully, but these errors were encountered: