Skip to content

Conversation

@samuelgarcia
Copy link
Member

Fix set_properties_after_merging when property is boolean.
This was introducing bugs in auto_merge

This was introducing bugs in auto_merge
@samuelgarcia samuelgarcia added this to the 0.103.0 milestone Jul 25, 2025
@alejoe91 alejoe91 added the core Changes to core module label Jul 28, 2025
for key in prop_keys:
parent_values = sorting_pre_merge.get_property(key)
if parent_values.dtype.kind not in default_missing_values:
# if the property is boolean or integer there is no missing values so we skip
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for my info since I don't set properties. You mean that in the case of float you can have a nan or what is a "missing value"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a nan for float.
a "" for str
like we have in the base class.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. Missing values are defined here: https://github.com/SpikeInterface/spikeinterface/blob/main/src/spikeinterface/core/base.py#L38

For ints and bool, we don't have missing values :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool thanks.

@alejoe91 alejoe91 merged commit 8557c87 into SpikeInterface:main Jul 28, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Changes to core module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants