SIMPLE-AstroDB / SIMPLE-db

BSD 3-Clause "New" or "Revised" License
11 stars 22 forks source link

Improve compile_header function #343

Closed kelle closed 1 year ago

kelle commented 1 year ago
kelle commented 1 year ago

If we make the expected keywords a list, we could compare to the dictionary keys as described here: https://stackoverflow.com/questions/15385308/how-to-compare-list-values-with-dictionary-keys-and-make-a-new-dictionary-of-it

kelle commented 1 year ago

For now, if there is a key added that we don't expect, compile_header should fail and instruct the user how to add a new keyword after the header is compiled.

kelle commented 1 year ago

Completed via #365 .