7c408ad993e215227823fc1f7fc64b8737782b5d,lazyflow/operators/ioOperators/opNpyFileReader.py,OpNpyFileReader,setupOutputs,#OpNpyFileReader#,49

Before Change


            npzContents = rawLoadedNumpyObject.files
            if self.InternalPath.value == "":
                logger.warning("Falling back to first entry in NPZ file %s", fileName)
                self.InternalPath.setValue(npzContents[0])

            if self.InternalPath.value not in npzContents:
                raise OpNpyFileReader.DatasetReadError(
                    "Unable to open numpy npz dataset: {fileName}: {internalPath}".format(

After Change


        // .npz files:
        elif isinstance(rawLoadedNumpyObject, numpy.lib.npyio.NpzFile):
            if self.InternalPath.ready():
                try:
                    rawNumpyArray = rawLoadedNumpyObject[self.InternalPath.value]
                except KeyError:
                    raise OpNpyFileReader.DatasetReadError(
                        "InternalPath not found in file. Unable to open numpy npz dataset: "
                        "{fileName}: {internalPath}".format(
                            fileName=fileName,
                            internalPath=self.InternalPath.value))
            else:
                raise OpNpyFileReader.DatasetReadError(
                    "InternalPath not given. Unable to open numpy npz dataset: "
                    "{fileName}".format(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ilastik/ilastik
Commit Name: 7c408ad993e215227823fc1f7fc64b8737782b5d
Time: 2017-03-07
Author: dominik.kutra@gmail.com
File Name: lazyflow/operators/ioOperators/opNpyFileReader.py
Class Name: OpNpyFileReader
Method Name: setupOutputs


Project Name: ilastik/ilastik
Commit Name: b94a3b76ab15819a762fdf29b3e9a760c072c1b1
Time: 2012-10-15
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/thresholdMasking/thresholdMaskingSerializer.py
Class Name: ThresholdMaskingSerializer
Method Name: _deserializeFromHdf5


Project Name: ilastik/ilastik
Commit Name: c7d1624e3a358f12f7ca2319592cf90384b6cacf
Time: 2012-05-01
Author: bergs@janelia.hhmi.org
File Name: ilastik-shell/applets/dataSelection/opInputDataReader.py
Class Name:
Method Name: