-
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
Passband integration #52
Conversation
… much for our use case)
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.
Thank you! Large concern I have is about Passbands
class instead of multiple instances of Passband
class
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Co-authored-by: Konstantin Malanchev <[email protected]>
…te to other download methods; switch to logging
…nsultation before I write the rest)
…e, expand docstring
True if the transmission table is successfully loaded, False otherwise. | ||
""" | ||
try: | ||
self.transmission_tables[band_name] = np.loadtxt(file_path) |
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.
A consideration for a future PR. I think you might be able to simplify the user's workflow a bit if you always normalize the table as soon as it is loaded (instead of having the user manually call calculate_normalized_system_response_tables()
.
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.
Another thought about interface for future - I think we would like to have something like
passbands = Passbands()
sourcemodel.bandflux(passbands,times)
instead of calling the method from passbands.
Closes #6
Calculates normalized transmission tables along a grid of wavelengths with a 1 Angstrom step. We require users to match this grid with their input (or provide a model such as SplineModel that can generate wavelengths along an arbitrary grid).
When Kostya and I had initially discussed the strategy for this, we said (for now) the user should be in charge of matching the grid or providing such a model.
However, at some point we might want to add the ability to interpolate our normalized transmission tables to match an arbitrary user-generated grid.