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

Error when accessing standardizeSpectralFormat params for BIAS data for GHOST via showpars #467

Open
davner opened this issue Nov 6, 2024 · 0 comments

Comments

@davner
Copy link
Contributor

davner commented Nov 6, 2024

An error occurs when attempting to access the standardizeSpectralFormat primitive params using a bias file for the GHOST instrument via the CLI tool showpars. The issue does not arise with other primitives like standardizeStructure.

Steps to reproduce

I have DRAGONS installed from the master branch.

Test file: S20240511S0046_blue002.fits

$ showpars S20240511S0046_blue002.fits standardizeSpectralFormat
Dataset tagged as {'BIAS', 'GEMINI', 'GHOST', 'CAL', 'UNPREPARED', 'BLUE', 'SOUTH', 'RAW'}

Traceback (most recent call last):
  File "/Users/dan.avner/miniconda3/envs/goats-env/bin/showpars", line 78, in <module>
    sys.exit(main())
  File "/Users/dan.avner/miniconda3/envs/goats-env/bin/showpars", line 36, in main
    return showpars(pobj, args.primitive, tags, args.doc)
  File "/Users/dan.avner/miniconda3/envs/goats-env/bin/showpars", line 59, in showpars
    raise KeyError(f"{primname} doesn't exist for "
KeyError: "standardizeSpectralFormat doesn't exist for this data type."
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