-
Notifications
You must be signed in to change notification settings - Fork 1
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
Do not treat missing ancestor as input mismatch #14
base: main
Are you sure you want to change the base?
Conversation
new_pred = new_branch.pred[node] | ||
if new_pred and graph.pred[node] != new_pred: |
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.
More generally, would it make sense to check if all keys in "new" have the same values in existing, basically if a dict update would have no effect?
I may be wrong, but your call to Please see around Lines 605 to 628 in ee09d24
|
Having though about this some more, I still have doubts if auto-joining at nodes other than the key in |
I'm in favour of using more explicitly named functions. But in this case, we should reconsider whether |
Not really like a container in the Python sense. I have found it most useful to think about Cyclebane graphs as functions, with input nodes being function arguments, and output nodes are function return values. Then |
This should fix scipp/sciline#180.
If
new_branch
has no ancestors, it should be safe to insert it and use the ancestors ofself
.@SimonHeybrock
test_setitem_fails_when_grandparents_change
is failing. I think this test should pass. But in__setitem__
, we getintersection_nodes = set()
becauseremoves all ancestors but
'c'
such thatIs this how it should behave? Or is there currently a bug?