-
Notifications
You must be signed in to change notification settings - Fork 189
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
ORM: fix deprecation warning always being shown in link managers #5011
ORM: fix deprecation warning always being shown in link managers #5011
Conversation
I think this affects |
cheers, I will have a look at these later today (once I have done my tutorial stint) |
Codecov Report
@@ Coverage Diff @@
## develop #5011 +/- ##
===========================================
- Coverage 80.13% 80.12% -0.00%
===========================================
Files 515 515
Lines 36694 36699 +5
===========================================
+ Hits 29400 29403 +3
- Misses 7294 7296 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
151386d
to
cb60226
Compare
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.
Thanks @sphuber . I assume the added test cases are in order to test behaviour of return catch, the original not_existent
is from nested__not_existent
, so you may need to change either link_label='remote_folder'
or separate them from the previous one.
cb60226
to
95c6089
Compare
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.
Only a minor request, all looks good to me.
Hoping it get merged soon, when looking at this I just find because of too much of this depracated complaint I turn off the ipython warning.
The link managers for the `Node` class which are used for the `inputs` and `outputs` attributes and facilitate the tab-completion of incoming and outgoing links, was recently changed to deprecate the direct use of double underscores in link labels in favor of treating them as normal nested dictionaries. The deprecation warning was thrown whenever the label contained a double underscore, but this would therefore also trigger on dunder methods, which is not desirable behaviour. This inaccuracy manifested itself in the deprecation method being printed even when just activating the tab-completion on `node.outputs` or `node.inputs` without even specifying a label with a double underscore. It is not fully understood how `_get_node_by_link_label` is called in doing this, but it seems some caching mechanism is calling the `__wrapped__` attribute on the link manager, which in turn triggers the deprecation warning. An additional clause in the condition to exclude dunder methods fixes the behaviour.
95c6089
to
d292b4c
Compare
The link managers for the `Node` class which are used for the `inputs` and `outputs` attributes and facilitate the tab-completion of incoming and outgoing links, was recently changed to deprecate the direct use of double underscores in link labels in favor of treating them as normal nested dictionaries. The deprecation warning was thrown whenever the label contained a double underscore, but this would therefore also trigger on dunder methods, which is not desirable behaviour. This inaccuracy manifested itself in the deprecation method being printed even when just activating the tab-completion on `node.outputs` or `node.inputs` without even specifying a label with a double underscore. It is not fully understood how `_get_node_by_link_label` is called in doing this, but it seems some caching mechanism is calling the `__wrapped__` attribute on the link manager, which in turn triggers the deprecation warning. An additional clause in the condition to exclude dunder methods fixes the behaviour. Cherry-pick: 53c5564
Fixes #5010
The link managers for the
Node
class which are used for theinputs
and
outputs
attributes and facilitate the tab-completion of incomingand outgoing links, was recently changed to deprecate the direct use of
double underscores in link labels in favor of treating them as normal
nested dictionaries. The deprecation warning was thrown whenever the
label contained a double underscore, but this would therefore also
trigger on dunder methods, which is not desirable behaviour.
This inaccuracy manifested itself in the deprecation method being
printed even when just activating the tab-completion on
node.outputs
or
node.inputs
without even specifying a label with a doubleunderscore. It is not fully understood how
_get_node_by_link_label
iscalled in doing this, but it seems some caching mechanism is calling the
__wrapped__
attribute on the link manager, which in turn triggers thedeprecation warning. An additional clause in the condition to exclude
dunder methods fixes the behaviour.