MCPcopy Create free account
hub / github.com/Slicer/Slicer / downloadSamples

Method downloadSamples

Modules/Scripted/SampleData/SampleData.py:1047–1055  ·  view source on GitHub ↗

For a given sample name this will search the available sources and load it if it is available. Returns the loaded nodes.

(self, sampleName)

Source from the content-addressed store, hash-verified

1045 return self.downloadSamples(sampleName)[0]
1046
1047 def downloadSamples(self, sampleName):
1048 """For a given sample name this will search the available sources
1049 and load it if it is available. Returns the loaded nodes.
1050 """
1051 source = self.sourceForSampleName(sampleName)
1052 nodes = []
1053 if source:
1054 nodes = self.downloadFromSource(source)
1055 return nodes
1056
1057 def logMessage(self, message, logLevel=logging.DEBUG):
1058 logging.log(logLevel, message)

Callers 7

downloadSampleMethod · 0.95
downloadDentalSurgeryMethod · 0.95
downloadMRUSPostateMethod · 0.95
setUpMethod · 0.80
downloadSampleFunction · 0.80
downloadSamplesFunction · 0.80

Calls 2

sourceForSampleNameMethod · 0.95
downloadFromSourceMethod · 0.95

Tested by 2

setUpMethod · 0.64