Repository navigation
Add functionality to read Roman's asdf files directly. - #214
Merged
Merged
Conversation
…r ra, dec as well
…e better hooks for subclasses to override.
…g works and where subclasses might want to do something different.
Collaborator
|
@rmjarvis I took a look at the individual commits and left some comments. I think you're okay to merge, so I'll mark this as good to go, but feel free to start discussion threads on some of the things I asked about here on github or on slack before closing this PR. |
Owner
Author
|
Thanks Nihar and Hyeong for the comments. I think those are all things worth keeping in mind for future possible improvements. The sep background was really meant to be a quick and dirty way to move forward when I didn't have any good background estimate. I much prefer to have a well curated background image to take as input, so hopefully someone will make those for Roman and we can just use those. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR primarily adds RomanFiles as a custom input type that can read the Roman asdf files directly. The most complicated bit is the ramp_fit=uniform option, which does a number of adjustments to get the gain and noise levels accurate for the "data + dumo" image. This may be of only temporary utility, since they may have already fixed the guiding problems that prompted us to use this. But for now it's still important to run Piff on some of the current commissioning data.
This PR is pretty big in terms of lines changed, for which I apologize. It includes a pretty huge refactoring of the InputFiles class to make it more amenable to have subclasses override various aspects of the behavior. I think that effort was also just generically useful to clean up that part of the code, which had become somewhat unwieldy.
I recommend reviewers look at individual commits to review specific additions, rather than try to wade through the full thing all at once. The most interesting commits with new functionality are: