Skip to content

Error populating LFPBandV1 when comparing current lfp band interval times to previously inserted ones #1481

@gshvarts

Description

@gshvarts

I'm running into an error when trying to populate LFPBandV1, specifically when trying to repopulate it with the same interval list as it had been previously populated with, but just changing the filter name. I kept running into errors where it can't match the current lfp_band_valid_times with the ones that were previously inserted (see line 471 in lfp_band.py). I've done a lot of snooping around in debug mode and I think the interval list that it's trying to insert now seems correct to me but I was really puzzled for a while as to why the previous one wasn't matching up, but I think I might have narrowed it down? In lines 465-468 (copied below), should the LFPBandV1 populate call be inserting lfp_band_valid_times instead of lfp_valid_times? As it currently is, from what I understand I think it's ending up comparing lfp_valid_times from a previous insert to lfp_band_valid_times from this current insert (my lfp_band_times include the artifact-removed interval list which is why they end up having different intervals included).

lfp_valid_times.set_key(**key, pipeline="lfp band")
if len(tmp_valid_times) == 0:  # TODO: swap for cautious_insert
    # add an interval list for the LFP valid times
    IntervalList.insert1(lfp_valid_times.as_dict)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions