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
Tickets/dm 5643 #3
Conversation
Is it necessary to spell it |
Looks good to me. I'm a little worried that the tests don't appear to test the case that a list/vector of values is associated with a single property in a |
Is the point of this to make a PropertyList look like an OrderedDict? If so, why don't we just add the methods to duck type it to quack like an OrderedDict? |
I can think of at least two reasons: 1) it might be a lot of methods (haven't looked), and 2) there are differences in the semantics (e.g. the current |
As @timj moves us towards more pythonic interfaces, surely we need to move in this direction (at least at the python level). We would have made PropertyList look like a dict if we designed it now. |
I have to admit I was wondering why we weren't just adding all the relevant dunder methods to make it quack like a dict (via |
I think the |
https://github.com/timj/perl-Astro-FITS-Header 😄 implements a dict interface and can round trip to FITS. |
Oh, it's not impossible; |
@PaulPrice, the spelling as |
Please note that I just pushed a commit to generate the |
Thanks for the explanation @pschella. You're probably right to spell them differently. |
Method returns a (possibly nested) dictionary of properties. All propertary values are converted to their corresponding Python types.
Method returns a (possibly nested) ordered dictionary of properties. All propertary values are converted to their corresponding Python types.
This pull request does three things.
Unit tests are included for both items and a CI build has succeeded.