Open steve725 opened 2 years ago
Hi, I'm using networkx 2.6.1 and got two errors in pytopkapi/pretreatment.py. To fix the errors I had to change:
change line 194: from ar_label_sort = np.array(nx.topological_sort(network_dag)) to ar_label_sort = np.array(list(nx.topological_sort(network_dag)))
ar_label_sort = np.array(nx.topological_sort(network_dag))
ar_label_sort = np.array(list(nx.topological_sort(network_dag)))
change line 201: from dag_copy = nx.copy.deepcopy(network_dag) to dag_copy = network_dag.copy()
dag_copy = nx.copy.deepcopy(network_dag)
dag_copy = network_dag.copy()
heavens above! thank you!!
Hi, I'm using networkx 2.6.1 and got two errors in pytopkapi/pretreatment.py. To fix the errors I had to change:
change line 194: from
ar_label_sort = np.array(nx.topological_sort(network_dag))
toar_label_sort = np.array(list(nx.topological_sort(network_dag)))
change line 201: from
dag_copy = nx.copy.deepcopy(network_dag)
todag_copy = network_dag.copy()