5af1994def9a52fe1ffd2847b2519f1e27cfbc64,niftynet/io/image_reader.py,ImageReader,shapes,#ImageReader#,163

Before Change


            raise RuntimeError
        if not self._shapes:
            if self.__first_image is None:
                _, self.__first_image, _ = self(idx=0)
            self._shapes = {field: self.__first_image[field].shape
                            for field in self.output_fields}
        return self._shapes

After Change


            // 1) only read from the first image in list
            // 2) not considering effects of random augmentation layers
            // but time and modality dimensions should be correct
            first_image = self.output_list[0]
            self._shapes = {field: first_image[field].shape
                            for field in self.output_fields}
        return self._shapes
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: NifTK/NiftyNet
Commit Name: 5af1994def9a52fe1ffd2847b2519f1e27cfbc64
Time: 2017-08-12
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/image_reader.py
Class Name: ImageReader
Method Name: shapes


Project Name: stellargraph/stellargraph
Commit Name: 6224fa670c6bac8b82ae8889cb01ae73a4a5e8d1
Time: 2019-01-24
Author: wangzhen263@gmail.com
File Name: stellargraph/layer/gcn.py
Class Name: GCN
Method Name: node_model


Project Name: NifTK/NiftyNet
Commit Name: 5af1994def9a52fe1ffd2847b2519f1e27cfbc64
Time: 2017-08-12
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/image_reader.py
Class Name: ImageReader
Method Name: tf_dtypes