View Issue Details

IDProjectCategoryView StatusLast Update
0002659Slicer4Module Annotationspublic2014-03-06 04:51
Reporterjcfr Assigned Tonicole  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionno change required 
Product Version 
Target VersionSlicer 4.2.0Fixed in VersionSlicer 4.2.0 
Summary0002659: Fix loading of acsv file
Description

// -------------
From Feng Chen:

when I try the "slicer.util.loadFiducialList('F.acsv')" , it does not work. How can I add the .acsv file?

// -------------
From Nicole:

That utility method is to load Slicer3 fiducial lists with the .fcsv
extension.

In order to load Slicer4 annotation fiducials with the .acsv extension,
you should be able to do the following:

properties = {}
properties['fileName'] = '/path/to/F.acsv'
annotFileType = 'AnnotationFile'
slicer.app.coreIOManager().loadNodes(annotFileType, properties)

but that's returning false for me as well.
Once it's debugged (working on it) it should get added to the util
python script.

TagsNo tags attached.

Relationships

child of 0002661 closednicole Update loadFiducialList from util.py to support acsv file 

Activities

jcfr

jcfr

2012-10-17 14:44

administrator   ~0006605

From Nicole:

For now, this will work:
annotLogic = slicer.modules.annotations.logic()
id = annotLogic.LoadAnnotation('/path/to/F.acsv', 'F', 1)

nicole

nicole

2012-10-18 06:56

administrator   ~0006616

I forgot the properties element to flag this as a fiducial file, this works:
properties = {}
properties['fileName'] = '/path/to/F.acsv'
properties['name'] = 'F'
properties['fiducial'] = 1
annotFileType = 'AnnotationFile'
slicer.app.coreIOManager().loadNodes(annotFileType, properties)

jcfr

jcfr

2014-03-06 04:50

administrator   ~0010737

Closing resolved issues that have not been updated in more than 3 months

Issue History

Date Modified Username Field Change
2012-10-17 14:34 jcfr New Issue
2012-10-17 14:34 jcfr Status new => assigned
2012-10-17 14:34 jcfr Assigned To => nicole
2012-10-17 14:34 jcfr Target Version => Slicer 4.2.0 - coming release
2012-10-17 14:40 jcfr Relationship added child of 0002661
2012-10-17 14:44 jcfr Note Added: 0006605
2012-10-18 06:56 nicole Note Added: 0006616
2012-10-18 06:56 nicole Status assigned => resolved
2012-10-18 06:56 nicole Fixed in Version => Slicer 4.2.0 - coming release
2012-10-18 06:56 nicole Resolution open => no change required
2014-03-06 04:50 jcfr Note Added: 0010737
2014-03-06 04:51 jcfr Status resolved => closed