@@ -92,14 +92,20 @@ def writeIntoDestination( self, destination, value, roi ):
92
92
try :
93
93
destination [:] = value [sl ]
94
94
except TypeError :
95
- warn_deprecated ("old style slot encountered: non array-like value set -> change SlotType from ArrayLike to proper SlotType" )
95
+ # FIXME: This warning used to be triggered by a corner case that could be encountered by "value slots".
96
+ # The behavior here isn't truly deprecated. But we need a better solution for lazyflow 2.0.
97
+ # See ilastik/ilastik#704
98
+ #warn_deprecated("old style slot encountered: non array-like value set -> change SlotType from ArrayLike to proper SlotType")
96
99
destination [:] = value
97
100
else :
98
101
sl = roiToSlice (roi .start , roi .stop )
99
102
try :
100
103
destination = value [sl ]
101
104
except :
102
- warn_deprecated ("old style slot encountered: non array-like value set -> change SlotType from ArrayLike to proper SlotType" )
105
+ # FIXME: This warning used to be triggered by a corner case that could be encountered by "value slots".
106
+ # The behavior here isn't truly deprecated. But we need a better solution for lazyflow 2.0.
107
+ # See ilastik/ilastik#704
108
+ #warn_deprecated("old style slot encountered: non array-like value set -> change SlotType from ArrayLike to proper SlotType")
103
109
destination = [value ]
104
110
105
111
if type (destination ) == numpy .ndarray and destination .shape == ():
@@ -108,7 +114,11 @@ def writeIntoDestination( self, destination, value, roi ):
108
114
# e.g. try this:
109
115
# x = np.int64(5)
110
116
# assert type(x[()]) == np.ndarray and x[()].shape == ()
111
- warn_deprecated ("old style slot encountered: non array-like value set -> change SlotType from ArrayLike to proper SlotType" )
117
+
118
+ # FIXME: This warning used to be triggered by a corner case that could be encountered by "value slots".
119
+ # The behavior here isn't truly deprecated. But we need a better solution for lazyflow 2.0.
120
+ # See ilastik/ilastik#704
121
+ #warn_deprecated("old style slot encountered: non array-like value set -> change SlotType from ArrayLike to proper SlotType")
112
122
destination = [value ]
113
123
return destination
114
124
0 commit comments