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

Function downloadSample

Modules/Scripted/SampleData/SampleData.py:50–54  ·  view source on GitHub ↗

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

(sampleName)

Source from the content-addressed store, hash-verified

48
49
50def downloadSample(sampleName):
51 """For a given sample name this will search the available sources
52 and load it if it is available. Returns the first loaded node.
53 """
54 return SampleDataLogic().downloadSamples(sampleName)[0]
55
56
57def downloadSamples(sampleName):

Callers

nothing calls this directly

Calls 2

SampleDataLogicClass · 0.85
downloadSamplesMethod · 0.80

Tested by

no test coverage detected