8000 FIX: Address numpy and traits deprecations by effigies · Pull Request #3699 · nipy/nipype · GitHub
[go: up one dir, main page]

Skip to content

FIX: Address numpy and traits deprecations #3699

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

Merged
merged 14 commits into from
Nov 18, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: Handle new/old networkx graph emissions
  • Loading branch information
effigies committed Nov 18, 2024
commit 8e271230ef6b1b6b3053de930ec31ccd80b71ff2
8 changes: 6 additions & 2 deletions nipype/pipeline/engine/tests/test_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,9 @@ def test_write_graph_dotfile(tmpdir, graph_type, simple):
pipe.write_graph(graph2use=graph_type, simple_form=simple, format="dot")

with open("graph.dot") as f:
graph_str = f.read()
# Replace handles change in networkx behavior when graph is missing a name
# Probably around 3, but I haven't tracked it down.
graph_str = f.read().replace(' {', ' {')

if simple:
for line in dotfiles[graph_type]:
Expand Down Expand Up @@ -635,7 +637,9 @@ def test_write_graph_dotfile_iterables(tmpdir, graph_type, simple):
pipe.write_graph(graph2use=graph_type, simple_form=simple, format="dot")

with open("graph.dot") as f:
graph_str = f.read()
# Replace handles change in networkx behavior when graph is missing a name
# Probably around 3, but I haven't tracked it down.
graph_str = f.read().replace(' {', ' {')

if simple:
for line in dotfiles_iter[graph_type]:
Expand Down
Loading
0