Code Monkey home page Code Monkey logo

Comments (1)

jhlegarreta avatar jhlegarreta commented on June 26, 2024

It turns out that the failures are triggered by the SampleData.downloadFromURL method at e.g.

The method ultimately calls ‎SampleDataLogic.downloadFromSource which covers a number of data type cases:
https://github.com/Slicer/Slicer/blob/17d23da3fddefd412aacc9f390c31f28379c0dba/Modules/Scripted/SampleData/SampleData.py#L682

It looks like the method is not working for the FiberBundleFile data type, and ultimately makes the process crash with the above error.

If one specifies a ModelFile data type at:

('fiber_ply_export_test', 'fiber_ply_export_test.vtk', 'https://github.com/SlicerDMRI/DMRITestData/blob/master/Tractography/fiber_ply_export_test.vtk?raw=true', 'FiberBundleFile'),

instead of a FiberBundleFile, the data is indeed loaded into 3D Slicer, but then it fails a few lines after that because the node at issue is not present in the scene, e.g.

  File "bld/slicerdmri/inner-build/lib/Slicer-5.5/qt-scripted-modules/TractographyDownsample.py", line 653, in test_TractographyDownsample1
    fiberBundleNode = slicer.util.getNode(pattern="fiber_ply_export_test")
  File "bld/slicer/Slicer-build/bin/Python/slicer/util.py", line 1517, in getNode
    raise MRMLNodeNotFoundException("could not find nodes in the scene by name or id '%s'" % (pattern if (isinstance(pattern, str)) else ""))
slicer.util.MRMLNodeNotFoundException: could not find nodes in the scene by name or id 'fiber_ply_export_test'

So this is not related to import sorting issues, and the failure is ultimately the same as the one reported in issue #207: closing this issue in favor of the latter and adding the failing test report in there.

from slicerdmri.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.