Commit fbf5410b authored by Alexander Wiebel's avatar Alexander Wiebel

[DOC] make this example script wait long enough to really work

parent 290ae060
......@@ -181,6 +181,10 @@ for dataset in niftiList:
# We start with loading the dataset, which is done by creating a data module:
data = rootContainer.createDataModule( fileToLoad )
# Here we should wait for data to be loaded ... but is an easy example so we just wait for 5 seconds
print( "Waiting for 5 seconds." )
time.sleep( 5 )
# Now we check if the data we loaded is a scalar dataset:
if not data.getInformationProperties().getProperty( "Dataset type" ).getString( True ) == "WDataSetScalar":
print( fileToLoad, "does not contain scalar data! Skipping." )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment