Skip to content
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

ENH: Simplify node loading methods API in slicer.util #1159

Closed
wants to merge 1 commit into from

Conversation

lassoan
Copy link
Contributor

@lassoan lassoan commented Jun 23, 2019

Previously, returnNode=True argument had to be set to retrieve the loaded node:

volumeNode = slicer.util.loadVolume('path/to/volume.nrrd', returnNode=True)[1]

Now the node is returned by default:

volumeNode = slicer.util.loadVolume('path/to/volume.nrrd')

Also added loadNodesFromFile function that can return multiple loaded nodes.

Previously, returnNode=True argument had to be set to retrieve the loaded node:

  volumeNode = slicer.util.loadVolume('path/to/volume.nrrd', returnNode=True)[1]

Now the node is returned by default:

  volumeNode = slicer.util.loadVolume('path/to/volume.nrrd')

Also added loadNodesFromFile function that can return multiple loaded nodes.
@jcfr
Copy link
Member

jcfr commented Jul 1, 2019

Closing. Integrated in r28351

@jcfr jcfr closed this Jul 1, 2019
@jcfr
Copy link
Member

jcfr commented Jul 1, 2019

@lassoan
Copy link
Contributor Author

lassoan commented Jul 3, 2019

done (https://www.slicer.org/wiki/Documentation/Nightly/Developers/Tutorials/MigrationGuide/Slicer#slicer.util_functions)

@lassoan lassoan deleted the simple-loadnode-api branch July 3, 2019 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants