Skip to content

Commit 7b37ee3

Browse files
committed
revert
1 parent 97e48c4 commit 7b37ee3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/spikeinterface/core/base.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,11 @@ def set_property(
236236
The missing_value has to be specified for types int and unsigned int.
237237
"""
238238

239+
if values is None:
240+
if key in self._properties:
241+
self._properties.pop(key)
242+
return
243+
239244
size = self._main_ids.size
240245
values = np.asarray(values)
241246
dtype = values.dtype
@@ -261,7 +266,7 @@ def set_property(
261266
if dtype_kind not in self.default_missing_property_values.keys():
262267
raise ValueError(
263268
f"Can't infer a natural missing value for dtype {dtype_kind}. "
264-
"Please provide it with the `missing_value` argument"
269+
"Please provide it with the missing_value argument"
265270
)
266271
else:
267272
missing_value = self.default_missing_property_values[dtype_kind]

0 commit comments

Comments
 (0)