Skip to content

Conversation

@yger
Copy link
Collaborator

@yger yger commented Jan 5, 2026

Currently, one can not provide custom parameters to the drifting_gt generation. This PR fixes such behavior, such that users can not provide their own sorting, NoiseGenerator, Template kwargs, ... in order to reproduce more closely one behavior or refine benchmarks

else:
num_units = sorting.get_num_units()
sampling_frequency = sorting.sampling_frequency
if sorting._recording is not None:
Copy link
Member

Choose a reason for hiding this comment

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

This is very strange. Why would the sorting have an attached recording, we want to generate it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, but you can have a first generation, obtain a sorting, and then you might want to take the duration of this first data. But agreed, this might be not needed

duration, unit_locations[:, :2], seed=seed, **generate_displacement_vector_kwargs
)
else:
(
Copy link
Member

Choose a reason for hiding this comment

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

I would make a dict no ? Or at least a named tuple.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't know, this was to be consistent, but I can make it a dict if you prefer

durations=[duration],
seed=seed,
**generate_noise_kwargs,
)
Copy link
Member

Choose a reason for hiding this comment

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

else:
we need to check the duration

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

right, I'll do that

@alejoe91 alejoe91 added the generators Related to generator tools label Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

generators Related to generator tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants