449bdd68c98d0a562686993885af40b920d6378d,niftynet/io/image_reader.py,,_create_image,#Any#Any#Any#Any#,336
Before Change
// this should be handled by `ImageFactory.create_instance`
// ("testT1.nii.gz", "testT2.nii.gz", nan, "testFlair.nii.gz")
return None
interp_order = tuple(data_param[mod].interp_order
for mod in modalities)
pixdim = tuple(data_param[mod].pixdim for mod in modalities)
axcodes = tuple(data_param[mod].axcodes for mod in modalities)
loader = tuple(data_param[mod].loader for mod in modalities)
except KeyError:
After Change
return None
interp_order, pixdim, axcodes, loader = [], [], [], []
for mod in modalities:
try:
interp_order.append(data_param[mod].interp_order)
except AttributeError:
interp_order = DEFAULT_INTERP_ORDER
try:
pixdim.append(data_param[mod].pixdim)
except AttributeError:
pixdim = None
try:
axcodes.append(data_param[mod].axcodes)
except AttributeError:
axcodes = None
try:
loader.append(data_param[mod].loader)
except AttributeError:
loader = None
except KeyError:
tf.logging.fatal(
"Specified modality names %s "
"not found in config: input sections %s.",
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances Project Name: NifTK/NiftyNet
Commit Name: 449bdd68c98d0a562686993885af40b920d6378d
Time: 2018-05-01
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/image_reader.py
Class Name:
Method Name: _create_image
Project Name: andresriancho/w3af
Commit Name: d155f8a5ae4467a541c78e8a6115d4c15444bb27
Time: 2018-06-26
Author: andres.riancho@gmail.com
File Name: w3af/core/controllers/core_helpers/strategy_observers/thread_state_observer.py
Class Name: ThreadStateObserver
Method Name: inspect_data_to_log
Project Name: neuropsychology/NeuroKit.py
Commit Name: cfd6bac15bae8a42cac9453baff3ef8022798e20
Time: 2017-08-28
Author: dom.mak19@gmail.com
File Name: neurokit/eeg/eeg_data.py
Class Name:
Method Name: eeg_to_all_evokeds