Giter Club home page Giter Club logo

slicercip's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

slicercip's Issues

Fix `CIP_PAARatio` test ensuring table exists

12: path: ['/home/jcfr/Projects/SlicerCIP-build/inner-build/Scripted/CIP_PAARatio/Testing/Python', '/home/jcfr/Projects/SlicerCIP/Scripted/CIP_PAARatio/Testing/Python']
12: testname: CIP_PAARatio
12: -------------------------------------------
12: Switch to module:  "CIP_PAARatio" 
12: Warning: In /home/jcfr/Projects/Slicer-2-build/VTKv8/IO/SQL/vtkSQLiteQuery.cxx, line 166
12: vtkSQLiteQuery (0x65ff250): SetQuery(): vtk_sqlite3_prepare_v2() failed with error message no such table: CIP_PAARatio on statement: 'select * from CIP_PAARatio'
12: 
12: 
12: Execute(): Query is not null but prepared statement is.  There may have been an error during SetQuery().
12: 
12: 
12: Execute(): Query is not null but prepared statement is.  There may have been an error during SetQuery().
12: 
12: 
12: Query Error: no such table: CIP_PAARatio
12: 
12: 
12: Algorithm vtkRowQueryToTable(0x4357d80) returned failure for request: vtkInformation (0x6604c50)
12:   Debug: Off
12:   Modified Time: 894757
12:   Reference Count: 1
12:   Registered Events: (none)
12:   Request: REQUEST_DATA
12:   FORWARD_DIRECTION: 0
12:   FROM_OUTPUT_PORT: 0
12:   ALGORITHM_AFTER_FORWARD: 1

test_CIP_ParenchymaSubtypeTraining failing because not implemented

See

class CIP_ParenchymaSubtypeTrainingTest(ScriptedLoadableModuleTest):
def setUp(self):
""" Do whatever is needed to reset the state - typically a scene clear will be enough.
"""
slicer.mrmlScene.Clear(0)
def runTest(self):
"""Run as few or as many tests as needed here.
"""
self.setUp()
self.test_CIP_ParenchymaSubtypeTraining()
def test_CIP_ParenchymaSubtypeTraining(self):
self.fail("Test not implemented!")

vtkAssignAttribute warnings at startup

When loading all modules (observed on a local build using Slicer r24904 on Ubuntu 15.10), the following is reported:

Algorithm vtkAssignAttribute(0x439bac0) returned failure for request: vtkInformation (0x43ab630)
  Debug: Off
  Modified Time: 244466
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_DATA_OBJECT
  ALGORITHM_AFTER_FORWARD: 1
  FORWARD_DIRECTION: 0




Algorithm vtkAssignAttribute(0x439bac0) returned failure for request: vtkInformation (0x43ac220)
  Debug: Off
  Modified Time: 244471
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_DATA_OBJECT
  FROM_OUTPUT_PORT: 0
  ALGORITHM_AFTER_FORWARD: 1
  FORWARD_DIRECTION: 0




Algorithm vtkAssignAttribute(0x439bac0) returned failure for request: vtkInformation (0x43abeb0)
  Debug: Off
  Modified Time: 244479
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_DATA_OBJECT
  FROM_OUTPUT_PORT: 0
  ALGORITHM_AFTER_FORWARD: 1
  FORWARD_DIRECTION: 0

Problems displaying labelmaps that follow ChestConventions

The module "RegionTypeModule" doesn't seem to be working ok.
As a complement/workaround, a Colormap with all the possible Region-Type combinations could be used, so that any labelmap could use it.
I developed and tested code that creates the colormap from a file when the module starts. However, ideally, the node should be created dynamically using the ChestConventions. This is more or less what it's done in the module as of today, but in a new labelmap and only with 256 combinations.

Lung lesion analyzer breaking when trying to segment multiple nodules

Hi,

A radiologist colleague of mine is using your CIP extension in Slicer 4.10.2 on Windows. He has noticed a bug when trying to segment multiple pulmonary nodules in a single session. Here is his description to me (verbatim):

Yes, I upgraded to 4.10.2 and installed the CIP extension, but Iโ€™m not satisfied with the performance till now. I segmented 6 scans and I faced this problem twice: When I have a scan with multiple nodules to segment, after I segment the first one and choose a second nodule, the segment button stops working. So I have to save the mask I already finished, close the program and start it again to complete the segmentation of other nodules.

I just wanted to pass this information forward since he is not a GitHub user. Thanks for your help.

Fix CIP_LesionModel addressing download of http://midas.chestimagingplatform.org/download/item/667/1001_UVM_CANCER.nrrd

Test CIP_LesionModel is failing because this data file is not available:

http://midas.chestimagingplatform.org/download/item/667/1001_UVM_CANCER.nrrd

Here is the error reported when trying to access it

An error occurred

The system has encountered the following error:
Unable to find file on the disk
In /var/www/Midas3/core/controllers/components/DownloadBitstreamComponent.php, line: 50
At 14:52:54 2017-08-31

If needed, we could help you transition to http://girder.readthedocs.io to organize and manage your data.

Memory leaks in ParticlesDisplayModule

Running qSlicerParticlesDisplayModuleGenericTest allows to reproduce the problem.

23: Class "vtkCellData" has 2 instances still around.
23: Class "vtkTransformPolyDataFilter" has 1 instance still around.
23: Class "vtkInformationVector" has 11 instances still around.
23: Class "vtkPointData" has 2 instances still around.
23: Class "vtkCompositeDataPipeline" has 3 instances still around.
23: Class "vtkMatrix4x4" has 2 instances still around.
23: Class "vtkSimpleTransform" has 1 instance still around.
23: Class "vtkPoints" has 2 instances still around.
23: Class "vtkInformation" has 33 instances still around.
23: Class "vtkInformationStringVectorValue" has 1 instance still around.
23: Class "vtkPolyData" has 2 instances still around.
23: Class "vtkCylinderSource" has 1 instance still around.
23: Class "vtkAlgorithmOutput" has 1 instance still around.
23: Class "vtkInformationIntegerValue" has 56 instances still around.
23: Class "vtkCellArray" has 1 instance still around.
23: Class "vtkFloatArray" has 5 instances still around.
23: Class "vtkInformationStringValue" has 2 instances still around.
23: Class "vtkInformationExecutivePortVectorValue" has 1 instance still around.
23: Class "vtkIdTypeArray" has 1 instance still around.
23: Class "vtkTransform" has 1 instance still around.
23: Class "vtkFieldData" has 2 instances still around.
23: Class "vtkSphereSource" has 1 instance still around.
23: Class "vtkCommand or subclass" has 2 instances still around.
23: Class "vtkInformationExecutivePortValue" has 2 instances still around.

Remove dependency from deprecated Slicer core modules

We are planning to remove Slicer core modules that have been superseded by other modules.
https://discourse.slicer.org/t/removing-legacy-modules-in-slicer5/11371

We have noticed that this extension currently uses legacy editor module, and charts infrastructure (instead of Segment editor, Plots, and Tables modules).

If you want your extension to be available for the upcoming Slicer5 release, please remove dependency to these modules. If you have any questions or need any help with the upgrade, you can write here or post to the Slicer forum. Thank you for your contribution.

py_CIP_TracheaStentPlanning failing because not implemented

See

class CIP_TracheaStentPlanningTest(ScriptedLoadableModuleTest):
def setUp(self):
""" Do whatever is needed to reset the state - typically a scene clear will be enough.
"""
slicer.mrmlScene.Clear(0)
def runTest(self):
"""Run as few or as many tests as needed here.
"""
self.setUp()
self.test_CIP_TracheaStentPlanning_PrintMessage()
def test_CIP_TracheaStentPlanning_PrintMessage(self):
self.fail("Test not implemented!")

fail to bundle Colors.py with extension

Installing the latest CIP fails with messages like the one below (on linux, but probably the same everywhere).

Key error is:
ImportError: No module named Colors

I manually copied the Colors.py file into the logic folder and this resolved the problem for my installation.

The fix would be to explicitly include the Colors.py file in the installation:

https://github.com/acil-bwh/SlicerCIP/blob/develop/Scripted/CIP_Common/CMakeLists.txt#L5

Looks like the problem arose with this commit: 62afe4c

@acil-bwh @rjosest

The following path was manually added to the PythonPath in CIP_TracheaStentPlanning: /home/researcher/.config/NA-MIC/Extensions-25011/Chest_Imaging_Platform/lib/Slicer-4.5/qt-scripted-modules/CIP
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/researcher/.config/NA-MIC/Extensions-25011/Chest_Imaging_Platform/lib/Slicer-4.5/qt-scripted-modules/CIP_TracheaStentPlanning.py", line 26, in <module>
    from CIP.logic.SlicerUtil import SlicerUtil
  File "/home/researcher/.config/NA-MIC/Extensions-25011/Chest_Imaging_Platform/lib/Slicer-4.5/qt-scripted-modules/CIP/logic/__init__.py", line 6, in <module>
    from Colors import *
ImportError: No module named Colors
loadSourceAsModule - Failed to load file "/home/researcher/.config/NA-MIC/Extensions-25011/Chest_Imaging_Platform/lib/Slicer-4.5/qt-scripted-modules/CIP_TracheaStentPlanning.py"  as module "CIP_TracheaStentPlanning" ! 
Fail to instantiate module "CIP_TracheaStentPlanning" 

Lung lesion analyzer run fail with Slicer5.x

environment:
OS: Windows11
Slicer Ver: 5.2.1 stable release
CIP: install from slicer extension manager

I used this lung lesion analyzer in the tutorial to segmnet lung nodule.
I patched seed point and clicked "Segment nodule" button, the program ran for a while and displayed "Status: Completed with errors"

Lesion Segmentation terminated with an unknown exception.

Traceback (most recent call last):
File "C:/Users/uu/AppData/Local/NA-MIC/Slicer 5.2.1/NA-MIC/Extensions-31317/Chest_Imaging_Platform/lib/Slicer-5.2/qt-scripted-modules/CIP_LesionModel.py", line 2181, in
result.AddObserver("ModifiedEvent", lambda caller, event: self.onNoduleSegmentationCLIStateUpdated(
File "C:/Users/uu/AppData/Local/NA-MIC/Slicer 5.2.1/NA-MIC/Extensions-31317/Chest_Imaging_Platform/lib/Slicer-5.2/qt-scripted-modules/CIP_LesionModel.py", line 2420, in onNoduleSegmentationCLIStateUpdated
raise Exception("The Nodule Segmentation CLI failed")
Exception: The Nodule Segmentation CLI failed

I have done the same things on Ubuntu, the task also failed with:

Lesion Segmentation standard error:
terminate called after throwing an instance of 'slicer_itk::ExceptionObject'
what(): /work/Stable/Slicer-0-build/ITK/Modules/Core/SpatialObjects/include/itkSpatialObjectPoint.hxx:59:
ITK ERROR: SpatialObjectPoint(0x1218f10): The SpatialObject must be set prior to calling.

Traceback (most recent call last):
File "/home/uu/Slicer-5.2.1-linux-amd64/NA-MIC/Extensions-31317/Chest_Imaging_Platform/lib/Slicer-5.2/qt-scripted-modules/CIP_LesionModel.py", line 2181, in
result.AddObserver("ModifiedEvent", lambda caller, event: self.onNoduleSegmentationCLIStateUpdated(
File "/home/uu/Slicer-5.2.1-linux-amd64/NA-MIC/Extensions-31317/Chest_Imaging_Platform/lib/Slicer-5.2/qt-scripted-modules/CIP_LesionModel.py", line 2420, in onNoduleSegmentationCLIStateUpdated
raise Exception("The Nodule Segmentation CLI failed")
Exception: The Nodule Segmentation CLI failed

I try to reinstall Slicer with 5.1.0 and 5.0.0, the the same issue occured
Finally, I download SlicerCIP integrated(4.10.2), everything is OK.
So I guess CIP is not compatible with Slicer5.x, right?

Airway inspector result can't export

Issue imported from https://issues.slicer.org/view.php?id=4390

From Jinglong Chen:

I am doing some research with airway inspector in chest imaging platform. I get the result ,but I can't export the result.I try the" write CVS file",no respond.Then select,copy,paste in a excel table,failed.Would you like to tell me how to export the result ?Previously,when running the parenchyma analysis for emphysema,so does the result.

Slicer CIP extension not available using Slicer 4.11.0 on Mac OS.

Is the Slicer CIP extension no longer being actively supported? I recently installed the nightly build version of Slicer (version 4.11.0) and the CIP extension is no longer available for installation. Any idea why?

Previously I had Slicer 4.8.1 and CIP extension worked fine.

I am on a Mac with Mojave 10.14.4.

Thanks for your help.

Issues with SubjectHierarchyNode

Apparently there's been a change at some point in SubjectHierarchyNode. Depending on the Slicer version (/settings?) there are different settings for the SubjectHierarchyNode. This seems to be related with some change in the API, because it provokes an error when getting the root node with: slicer.vtkMRMLSubjectHierarchyNode.GetSubjectHierarchyNode(slicer.mrmlScene)

Interestingly, this happens in the Release and in the last nightly, but not with some intermediate versions. So my take is that it may be related to some settings.

Startup warning: vtkMRMLTractographyDisplayDisplayableManager already registered

When loading all modules (observed on a local build using Slicer r24904 on Ubuntu 15.10), the following is reported:

Warning: In /home/jcfr/Projects/Slicer/Libs/MRML/DisplayableManager/vtkMRMLDisplayableManagerFactory.cxx, line 132
vtkMRMLThreeDViewDisplayableManagerFactory (0xe07b50): RegisterDisplayableManager - vtkMRMLTractographyDisplayDisplayableManager already registered

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.