-
Notifications
You must be signed in to change notification settings - Fork 11
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
Problem with (MICADO) spectroscopy #565
Comments
Do you have the code for the source object that is mentioned in (1)? That would make it easier for me to exactly reproduce the issue. |
I have traced the original problem to
Replacing the second line with
produces a correct result. |
I think that change is due to #405. The old way of keeping track of which spectrum belonged to which field was not maintainable and lead to several bugs. In the new way, the specrum is always kept with the field it belongs. But that did make it impossible (or at least hard) to make the top level spectra attribute settable, so the read-only property is a compromise. But I cannot find that code you quote anywhere. |
Ah this code? irdb/METIS/docs/example_notebooks/demos/demo_rectify_traces.ipynb |
There is also one in demo_grating_efficiency.ipynb, but that is all I think:
I'll leave it to @teutoburg to tell you how to deal with this. I suggest adding some tests somewhere to prevent a similar regression in the future. And/or visually/automatically checking the notebooks before such a big change as #405 . (I could have done those myself as well, so this is not a complaint.) |
The quote came from example code of the user who reported the issue on slack, I should have mentioned that. Thanks for pointing out the demo notebooks, I'll change those. |
Fixed the notebooks in |
I'll close here and move the second item to a separate issue. |
To reiterate: I was on board with your changes in AstarVienna/ScopeSim_Templates#124 and had approved the PR, so I think we should still merge that. |
From Slack:
The text was updated successfully, but these errors were encountered: