We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 091811a commit 9340748Copy full SHA for 9340748
nipype/interfaces/cmtk/cmtk.py
@@ -383,13 +383,13 @@ def cmat(
383
with open(op.abspath(matrix_name), 'wb') as f:
384
pickle.dump(G, f, pickle.HIGHEST_PROTOCOL)
385
386
- numfib_mlab = nx.to_numpy_matrix(numfib, dtype=int)
+ numfib_mlab = nx.to_numpy_array(numfib, dtype=int)
387
numfib_dict = {"number_of_fibers": numfib_mlab}
388
- fibmean_mlab = nx.to_numpy_matrix(fibmean, dtype=np.float64)
+ fibmean_mlab = nx.to_numpy_array(fibmean, dtype=np.float64)
389
fibmean_dict = {"mean_fiber_length": fibmean_mlab}
390
- fibmedian_mlab = nx.to_numpy_matrix(fibmedian, dtype=np.float64)
+ fibmedian_mlab = nx.to_numpy_array(fibmedian, dtype=np.float64)
391
fibmedian_dict = {"median_fiber_length": fibmedian_mlab}
392
- fibdev_mlab = nx.to_numpy_matrix(fibdev, dtype=np.float64)
+ fibdev_mlab = nx.to_numpy_array(fibdev, dtype=np.float64)
393
fibdev_dict = {"fiber_length_std": fibdev_mlab}
394
395
if intersections:
nipype/interfaces/cmtk/nbs.py
@@ -40,7 +40,7 @@ def ntwks_to_matrices(in_files, edge_key):
40
raise KeyError(
41
"the graph edges do not have {} attribute".format(edge_key)
42
)
43
- matrix[:, :, idx] = nx.to_numpy_matrix(graph) # Retrieve the matrix
+ matrix[:, :, idx] = nx.to_numpy_array(graph) # Retrieve the matrix
44
return matrix
45
46
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments