fa6401c65531d695f302ac7fdfd76a82e8fc7b83,ilastik/applets/objectExtraction/opObjectExtraction.py,OpRegionFeatures3d,setupOutputs,#OpRegionFeatures3d#,107
Before Change
assert self.LabelVolume.meta.axistags == self.RawVolume.meta.axistags
taggedOutputShape = self.LabelVolume.meta.getTaggedShape()
if "t" in taggedOutputShape.keys():
assert taggedOutputShape["t"] == 1
assert set(taggedOutputShape.keys()) - set("t") == set("xyzc"), "Input volumes must have xyzc axes."
After Change
Output = OutputSlot()
def setupOutputs(self):
if self.LabelVolume.meta.axistags != self.RawVolume.meta.axistags:
raise Exception("raw and label axis tags do not match")
taggedOutputShape = self.LabelVolume.meta.getTaggedShape()
taggedRawShape = self.RawVolume.meta.getTaggedShape()
if not np.all(list(taggedOutputShape.get(k, 0) == taggedRawShape.get(k, 0)
for k in "xyzc")):
raise Exception("shapes do not match. label volume shape: {}."
" raw data shape: {}".format(self.LabelVolume.meta.shape,
self.RawVolume.meta.shape))
if taggedOutputShape.get("t", 1) != 1:
raise Exception("this operator cannot handle multiple time slices")
if set(taggedOutputShape.keys()) - set("t") != set("xyzc"):
raise Exception("Input volumes must have xyzc axes.")
// Remove the spatial dims (keep t if present)
del taggedOutputShape["x"]
del taggedOutputShape["y"]
del taggedOutputShape["z"]
del taggedOutputShape["c"]
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: ilastik/ilastik
Commit Name: fa6401c65531d695f302ac7fdfd76a82e8fc7b83
Time: 2013-04-23
Author: kemal.eren@iwr.uni-heidelberg.de
File Name: ilastik/applets/objectExtraction/opObjectExtraction.py
Class Name: OpRegionFeatures3d
Method Name: setupOutputs
Project Name: idaholab/raven
Commit Name: 817dab1773d0c2cbfbbea466e5967ffed5ba4d45
Time: 2018-01-24
Author: andrea.alfonsi@inl.gov
File Name: framework/CodeInterfaces/Generic/GenericCodeInterface.py
Class Name: GenericCode
Method Name: generateCommand
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 9121332c18e024d417d1aeb189ec98f295ffc694
Time: 2020-07-28
Author: chriswilkes@google.com
File Name: perfkitbenchmarker/linux_packages/epel_release.py
Class Name:
Method Name: YumInstall
Project Name: bokeh/bokeh
Commit Name: de32960039d19599f03e32ab0aedc090918b4602
Time: 2018-03-27
Author: p1himik@gmail.com
File Name: tests/examples/test_examples.py
Class Name:
Method Name: test_server_examples