We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 224785e commit 76d40aeCopy full SHA for 76d40ae
2 files changed
datajoint/dependencies.py
@@ -42,7 +42,8 @@ def topo_sort(graph):
42
if (master := extract_master(part)) in graph:
43
for edge in graph.in_edges(part):
44
parent = edge[0]
45
- if parent != master and extract_master(parent) != master:
+ if master not in (parent, extract_master(parent)):
46
+ # if parent is neither master nor part of master
47
graph.add_edge(parent, master)
48
sorted_nodes = list(nx.topological_sort(graph))
49
datajoint/diagram.py
@@ -71,7 +71,7 @@ class Diagram(nx.DiGraph):
71
Only those tables that are loaded in the connection object are displayed
72
"""
73
74
- def __init__(self, source=None, context=None):
+ def __init__(self, source, context=None):
75
76
if isinstance(source, Diagram):
77
# copy constructor
0 commit comments