View Issue Details

IDProjectCategoryView StatusLast Update
0002661Slicer4Module Annotationspublic2013-08-27 11:37
Reporterjcfr Assigned Tonicole  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version 
Target VersionSlicer 4.3.0Fixed in VersionSlicer 4.3.0 
Summary0002661: Update loadFiducialList from util.py to support acsv file
Description

FileType could be dynamically retrieved using ioManager->fileType(fileName);

If not dynamically looking up the filetype, an other method named "loadAnnotationList" could be added.

TagsNo tags attached.

Relationships

parent of 0002659 closednicole Fix loading of acsv file 

Activities

nicole

nicole

2012-10-18 07:04

administrator   ~0006617

If want to do one off load:

def loadAnnotationFiducial(filename, returnNode=False):
filetype = 'AnnotationFile'
properties = {}
properties['fiducial'] = 1
return loadNodeFromFile(filename, filetype, properties, returnNode)

call via
slicer.util.loadAnnotationFiducial('/path/to/F.acsv')

jcfr

jcfr

2012-10-18 07:15

administrator   ~0006618

Last edited: 2012-10-18 07:15

Looks good to me. Thanks

jcfr

jcfr

2012-10-18 10:26

administrator   ~0006619

Do you want me to go ahead and push a patch ?

nicole

nicole

2012-10-18 10:34

administrator   ~0006620

I was going to leave it until 4.3, it's not cricital now that the user has a workaround.

nicole

nicole

2013-07-09 08:59

administrator   ~0008958

Last edited: 2013-07-09 09:31

Also: do this for Markups fiducial list.

def loadMarkupsFiducialList(filename, returnNode=False):
filetype = 'MarkupsFiducials'
properties = {}
return loadNodeFromFile(filename, filetype, properties, returnNode)

Both added on Markups branch:
https://github.com/naucoin/Slicer/commit/42b445fd551e0fdef853f948fec5016be469ce10

nicole

nicole

2013-08-23 11:14

administrator   ~0009575

In svn 22318
http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=22318

Issue History

Date Modified Username Field Change
2012-10-17 14:40 jcfr New Issue
2012-10-17 14:40 jcfr Status new => assigned
2012-10-17 14:40 jcfr Assigned To => nicole
2012-10-17 14:40 jcfr Target Version => Slicer 4.3.0
2012-10-17 14:40 jcfr Relationship added parent of 0002659
2012-10-18 07:04 nicole Note Added: 0006617
2012-10-18 07:15 jcfr Note Added: 0006618
2012-10-18 07:15 jcfr Note Edited: 0006618
2012-10-18 10:26 jcfr Note Added: 0006619
2012-10-18 10:34 nicole Note Added: 0006620
2013-07-09 08:59 nicole Note Added: 0008958
2013-07-09 09:30 nicole Note Edited: 0008958
2013-07-09 09:31 nicole Note Edited: 0008958
2013-08-23 11:14 nicole Note Added: 0009575
2013-08-23 11:14 nicole Status assigned => resolved
2013-08-23 11:14 nicole Fixed in Version => Slicer 4.3.0
2013-08-23 11:14 nicole Resolution open => fixed
2013-08-27 11:37 jcfr Status resolved => closed