You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
get_spiking_v1_merge_ids uses the same restriction for both SpikeSortingRecordingSelection and ArtifactDetectionSelection tables. A valid restriction for one may not be valid for the other. Should these be separated into two inputs, recording_restr and artifact_restr?
The collected recording IDs are then used with fetch1 which implies that there should be only one recording per entry in ArtifactDetectionSelection. This may be true, but is not enforced, as a secondary key.
This function could also be refactored to reduce the number of fetches. Perhaps this is replaced by long distance restriction?
The text was updated successfully, but these errors were encountered:
You're right, the 1-1 mapping logic between recordings and artifacts assumed here is not guaranteed and needs corrected
I think this function still offers a utility over long-distance restriction as the goal is to let the user restrict from columns in multiple tables in one call (e.g the nwb_file_namesort_interval and sorter might need selected at once if want to pull out only the clusterless sortings for an epoch)
spyglass/src/spyglass/spikesorting/v1/utils.py
Lines 37 to 71 in 03e3996
get_spiking_v1_merge_ids
uses the same restriction for bothSpikeSortingRecordingSelection
andArtifactDetectionSelection
tables. A valid restriction for one may not be valid for the other. Should these be separated into two inputs,recording_restr
andartifact_restr
?The collected recording IDs are then used with
fetch1
which implies that there should be only one recording per entry inArtifactDetectionSelection
. This may be true, but is not enforced, as a secondary key.This function could also be refactored to reduce the number of fetches. Perhaps this is replaced by long distance restriction?
The text was updated successfully, but these errors were encountered: