-
Notifications
You must be signed in to change notification settings - Fork 0
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 some routines to get background subtracted images #174
base: master
Are you sure you want to change the base?
Conversation
@javierggt and @taldcroft this could use feedback on organization and names of methods etc. |
Actually it looks like I had some more changes in my local version, so I'll re-request review when those are up. |
2092874
to
c5cca8e
Compare
It's one of those days where I felt like spending too much time making some little code nicer. The hope is to take advantage of the power of
For example:
|
@jeanconn - big picture comment about API. What about sticking with the For existing code I have that grabs ACA images from MAUDE, I'd like an easy way to use this new code to do the dark subtraction on my existing table of images. So that might mean passing in a table of images and having the function return a new table which is matched to the input and contains relevant outputs, most importantly the dark-subtracted image. |
It also occurs to me that we might want to upstream the 3-hr chunking and time limit here to |
It looks like your concept of "get_chunk_times" is pretty general - where should that function live? |
With regard to " What about sticking with the maude_decom.get_aca_images standard of a single Table of images and related columns." - sure - when I wanted the data by slot I figured a compromise between the maude_decom.get_aca_images standard (has one table but a column for slot) and the mica.archive.aca_l0.get_slot_data standard (underlying data is in files by slot so the fetch works by slot) made sense, but if you prefer to use a table with slot as a column that's fine. |
Regarding "I'd like an easy way to use this new code to do the dark subtraction on my existing table of times." - is that a table of times or a table of aca images? I'm a little confused about which piece you want to plug in and where - do you want to point me to which code you had in mind? |
I meant "table of images from The point of a more atomic API (accepting a single table of images) is that if your application is working with a dict of tables, it is trivial to do this in your app:
Whereas if I have a single table with multiple slots included then that can also work with the same functions. If the functions required a dict of table then that wouldn't work. |
Hmm, your guess is as good as mine. |
Right, but wouldn't it make just as much sense to replace the call to |
Regarding "get_chunk_times" I was thinking cxotime first though I suppose it isn't specific to cxotimes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, this is very close! Basically all easy/uncontroversial things to fix.
Thanks for the Nth review of this one Tom! |
1489787
to
b3f58b1
Compare
Description
Add some convenience routines to get dark-current background subtracted ACA images.
Interface impacts
Testing
This depends on sot/mica#301 and sot/mica#311 .
Unit tests
Independent check of unit tests by [REVIEWER NAME]
Functional tests
No functional testing.