165207a79dafcf658f483d26ccffd9e982389dcc,niftynet/io/image_reader.py,ImageReader,initialise,#ImageReader#Any#Any#Any#,78
Before Change
dictionaries of image objects, and save them to ``self.output_list``.
if not self.names:
tf.logging.fatal("Please specify data input keywords, this should "
"be a subset of SUPPORTED_INPUT provided "
"in application file.")
raise ValueError
filtered_names = [name for name in self.names
if vars(task_param).get(name, None)]
if not filtered_names:
After Change
task_param = {mod:(mod,) for mod in list(data_param)}
elif isinstance(task_param, ParserNamespace):
task_param = vars(task_param)
try:
task_param = dict(task_param)
except ValueError:
tf.logging.fatal(
"To concatenate multiple input data arrays,\n"
"task_param should be a dictionary in the form:\n"
"{"new_modality_name": ["modality_1", "modality_2",...]}.")
raise
if file_list is None:
// defaulting to all files detected by the input specification
file_list = ImageSetsPartitioner().initialise(data_param).all_files
if not self.names:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: NifTK/NiftyNet
Commit Name: 165207a79dafcf658f483d26ccffd9e982389dcc
Time: 2018-05-01
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/image_reader.py
Class Name: ImageReader
Method Name: initialise
Project Name: NifTK/NiftyNet
Commit Name: 9db50ab9ed6bf6b4e462c84e2c38fedd36e7467a
Time: 2017-11-08
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/image_sets_partitioner.py
Class Name: ImageSetsPartitioner
Method Name: randomly_split_dataset
Project Name: NifTK/NiftyNet
Commit Name: baecce5a6fbe4576ca8348a93dc56f07e7ba84f6
Time: 2019-06-05
Author: ucabtmv@ucl.ac.uk
File Name: niftynet/contrib/csv_reader/csv_reader.py
Class Name: CSVReader
Method Name: initialise