We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97e48c4 commit 7b37ee3Copy full SHA for 7b37ee3
1 file changed
src/spikeinterface/core/base.py
@@ -236,6 +236,11 @@ def set_property(
236
The missing_value has to be specified for types int and unsigned int.
237
"""
238
239
+ if values is None:
240
+ if key in self._properties:
241
+ self._properties.pop(key)
242
+ return
243
+
244
size = self._main_ids.size
245
values = np.asarray(values)
246
dtype = values.dtype
@@ -261,7 +266,7 @@ def set_property(
261
266
if dtype_kind not in self.default_missing_property_values.keys():
262
267
raise ValueError(
263
268
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"
265
270
)
271
else:
272
missing_value = self.default_missing_property_values[dtype_kind]
0 commit comments