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

p_exptype has extra spaces in nirspec wavelengthrange file #36

Open
JeffValenti opened this issue Jan 19, 2019 · 0 comments
Open

p_exptype has extra spaces in nirspec wavelengthrange file #36

JeffValenti opened this issue Jan 19, 2019 · 0 comments

Comments

@JeffValenti
Copy link

jwst_nirspec_wavelengthrange_0004.asdf has extra spaces in the value of meta.exposure.p_exptype. Simple demonstration:

import asdf
import crds
keys = {'INSTRUME': 'NIRSPEC', 'EXP_TYPE': 'NRS_BRIGHTOBJ', 'DATE-OBS': '2021-03-30', 'TIME-OBS': '00:00:00'}
refs = crds.getreferences(keys, reftypes=['wavelengthrange'])
content = asdf.open(refs['wavelengthrange'])
p_exptype = content['meta']['exposure']['p_exptype']
print(p_exptype)

yields

NRS_TACQ|NRS_TASLIT|NRS_TACONFIRM|    NRS_CONFIRM|NRS_FIXEDSLIT|NRS_IFU|NRS_MSASPEC|NRS_IMAGE|NRS_FOCUS|    NRS_MIMF|NRS_BOTA|NRS_LAMP|NRS_BRIGHTOBJ|

Note the four extra spaces in front of NRS_CONFIRM and NRS_MIMF, both of which occur at the start of a continuation line in wave_range2asdf.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant