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

Merge bounds handling into _DimensionalMetadata class. #7

Merged
merged 3 commits into from
Oct 23, 2019

Conversation

pp-mo
Copy link

@pp-mo pp-mo commented Oct 22, 2019

Relating to SciTools#3422
This is a much simpler alternative to #6

It moves the bounds-handling 'extension code' from methods of Coord into the _DimensionalMetadata class, to avoid replicating parts of the parent code within the child class.
The Coord class no longer has its own methods for __eq__, __neg__ or __binary_operator__ : The parent implementation does it all.

Aside :
I have left the __str__ and __repr__ implementations as they were. I still think they could be improved though. The reworking of _str_dates_ done in #6 will probably be a useful simplification here too.

@pp-mo pp-mo mentioned this pull request Oct 22, 2019
@lbdreyer lbdreyer merged commit d3f39b8 into lbdreyer:ancil_var Oct 23, 2019
@pp-mo pp-mo deleted the ancil_var_combined branch March 18, 2022 15:28
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

Successfully merging this pull request may close these issues.

2 participants