-
Notifications
You must be signed in to change notification settings - Fork 240
More possibilities for gt generation #4289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
for more information, see https://pre-commit.ci
| else: | ||
| num_units = sorting.get_num_units() | ||
| sampling_frequency = sorting.sampling_frequency | ||
| if sorting._recording is not None: |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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: | ||
| ( |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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, | ||
| ) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
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