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

[WIP] Dynamically reevaluate dependencies on subobjects #411

Closed
wants to merge 2 commits into from

Conversation

philippjfr
Copy link
Member

Implements #410

(p.inst or p.cls).param.watch(_m_caller(self, n), p.name, p.what, queued=queued)

self.initialized = True
key = (n, p.name, p.what)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to make sure this key is sufficient to uniquely identify a callback.

@@ -864,6 +864,8 @@ def __set__(self,obj,val):
obj.__dict__[self._internal_name] = val

self._post_setter(obj, val)
if hasattr(val, '_setup_dependencies'):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally would have a better condition here, but can't do isinstance(val, Parameterized) since this is evaluated before Parameterized exists.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense.

@coveralls
Copy link

coveralls commented May 14, 2020

Coverage Status

Coverage decreased (-0.06%) to 76.388% when pulling 84a10cd on 410_dynamic_depends into a8e34b2 on master.

@tonyfast
Copy link
Contributor

@philippjfr can you merge or close this pr.

@tonyfast tonyfast added this to the 2.0 milestone Aug 31, 2020
@philippjfr philippjfr closed this Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants