-
Notifications
You must be signed in to change notification settings - Fork 293
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
Remove DataID attribute access #2396
Conversation
When a key attribute access is absent for a dataid, raise the correct type of AttributeError. Fixes pytroll#2395.
Codecov Report
@@ Coverage Diff @@
## main #2396 +/- ##
==========================================
+ Coverage 94.71% 94.73% +0.02%
==========================================
Files 329 329
Lines 48739 48733 -6
==========================================
+ Hits 46161 46166 +5
+ Misses 2578 2567 -11
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Remove the deprecated ability to access dataids by attribute. Now only key access is supported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Remove the
__getattr__
implementation on DataID, that was implementing a deprecated way to access information from DataID objects. From now on, only key access is possible.