Skip to content
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

Make filter value input to TemperatureResponseFundamental consistent with Sunpy #117

Open
jslavin opened this issue Jan 26, 2023 · 4 comments
Assignees
Labels
Code Improvement For general improvements to the codebase without adding new features. response Issues related to the response subpackage
Milestone

Comments

@jslavin
Copy link
Contributor

jslavin commented Jan 26, 2023

Currently the value returned by an XRTMap object created via
import sunpy.map
xrtmap = sunpy.map.Map(filepath)
gives the filter combination as an attribute of xrtmap:
xrtmap.measurement = 'Be thin-Open'
However the format is not compatible with that accepted by XRTpy.response.temperature_response.TemperatureResponseFundamental
e.g. 'Be-thin' or 'Be_thin'
For the sake of interoperability these should be made compatible (not saying which should change).

@wtbarnes
Copy link
Collaborator

This may also be related to #88. Notably, the xrtpy approach only uses a single filter wheel to denote a particular configuration whereas the XRT map source in sunpy returns both filter wheel positions.

@joyvelasquez joyvelasquez added the Code Improvement For general improvements to the codebase without adding new features. label Jul 18, 2023
@joyvelasquez joyvelasquez added this to the 0.4.0 milestone Jul 18, 2023
@jslavin
Copy link
Contributor Author

jslavin commented Jul 19, 2023 via email

@jslavin
Copy link
Contributor Author

jslavin commented Jul 19, 2023

One tricky part about this is the question of what we'll accept as inputs. I would think we should accept ones in the Sunpy style, e.g. Open-Ti poly (with a space), and in the fits header style, e.g. Ti_poly or Open/Ti_poly. Any others? What if someone gives 'Ti poly' for example, or 'Open/Ti poly'? The parsing could get complicated.

@jslavin
Copy link
Contributor Author

jslavin commented Jul 20, 2023

It appears that currently it is okay to supply "open" as the filter name to Channel. Why would that be? It seems that that should not be allowed since, as far as I know, that's not an allowed observation mode.

@wtbarnes wtbarnes added the response Issues related to the response subpackage label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Improvement For general improvements to the codebase without adding new features. response Issues related to the response subpackage
Projects
None yet
Development

No branches or pull requests

3 participants