You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write equivalencies using astropy units from counts (u.ct) to photons for iris_sji_dn_equivalency, iris_fuv_dn_equivalency and iris_nuv_dn_equivalency.
Currently there is no DN unit (data number) in astropy so make the equivalency between counts (u.ct) and photons.
The SJI equivalency should be in the sji_utils.py file while the FUV and NUV equivalencies should be in the sg_utils.py file.
Look up astropy equivalencies to see how to write new equivalencies.
The conversions between DN and photons via the detector gains can be found in the definition of the DN units in iris_tools.
These equivalencies should replace the IRIS units.
4
The code in the obsid module and its test module hasn't changed in the move from IRISpy. But some of the infrastructure that was used to perform the tests may need editing due to the move, e.g. missing imports, changed path names, etc.
A PR addressing this issue should not try to get tests for other modules working as they will change substantially and the test can be fixed at those times. However, a lot of the work done here may also mean there's less to do for other modules later in fixing their tests.
For simplicity, if this is the first issue addressed, this PR should comment out all other test modules by making those files giant docstrings. The modules can be uncommented as work on their modules is performed.
5
In IRISpy, the uncertainty of the spectrograph data was calculated in the reader function. The relevant parts of the code from that module were:
Issues on another repository that might be useful to keep around.
1
The uncertainty of the spectrograph data was calculated in the reader function.
The relevant parts of the code from that module were:
2
Write equivalencies using astropy units from counts (
u.ct
) to photons foriris_sji_dn_equivalency
,iris_fuv_dn_equivalency
andiris_nuv_dn_equivalency
.u.ct
) and photons.sji_utils.py
file while the FUV and NUV equivalencies should be in thesg_utils.py
file.iris_tools
.4
The code in the obsid module and its test module hasn't changed in the move from IRISpy. But some of the infrastructure that was used to perform the tests may need editing due to the move, e.g. missing imports, changed path names, etc.
A PR addressing this issue should not try to get tests for other modules working as they will change substantially and the test can be fixed at those times. However, a lot of the work done here may also mean there's less to do for other modules later in fixing their tests.
For simplicity, if this is the first issue addressed, this PR should comment out all other test modules by making those files giant docstrings. The modules can be uncommented as work on their modules is performed.
5
In IRISpy, the uncertainty of the spectrograph data was calculated in the reader function. The relevant parts of the code from that module were:
The text was updated successfully, but these errors were encountered: