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
The 18 files posted below failed with an error like
BEHAVIOR_ECEPHYS_WRITE_NWB_QUEUE_1130113579_input.json
When getting num_frames from <class 'allensdk.brain_observatory.behavior.data_files.stimulus_file.ReplayStimulusFile'>
len(self.data['items']['behavior']['intervalsms'] == 216178; expected zero
filepath: /allen/programs/braintv/production/visualbehavior/prod0/specimen_1104573427/ecephys_session_1130113579/1130277628/1130113579_579993_20210922.replay.pkl
This code was implemented based on @danielsf's intuition. No stakeholder has told us this validation check is appropriate. It obviously isn't. Just remove this check and try to re-instantiate the BehaviorEcephysSessions.
Note: There will be a unit test that fails when you remove this block of code. It is a test that the offending code raises an exception when it is supposed to. Go ahead and remove that test.
To create a BehaviorEcephysSession, run something like
import pandas as pd
import json
import pathlib
import numpy as np
from allensdk.brain_observatory.ecephys.behavior_ecephys_session import (
BehaviorEcephysSession)
def main():
json_path = pathlib.Path('/allen/aibs/technology/sergeyg/Projects/vbn/input_
json_templates/BEHAVIOR_ECEPHYS_WRITE_NWB_QUEUE_1111216934_input.json')
src_dir = json_path.parent
json_path_list = [n for n in src_dir.rglob('*input.json')]
whole_msg = ""
for json_path in json_path_list:
with open(json_path, 'rb') as in_file:
json_data = json.load(in_file)
session = BehaviorEcephysSession.from_json(session_data=json_data)
Task
Remove unnecessary validation check cited above
Remove unit test that depends on that validation check
Re run the sessions listed below through BehaviorEcephysSession instantiation and verify that they pass (or fail on some other bug that we should open a ticket for)
The text was updated successfully, but these errors were encountered:
When trying to instantiate BehaviorEcephysSessions from the input jsons in
The 18 files posted below failed with an error like
This is triggered by the following block of code
https://github.com/AllenInstitute/AllenSDK/blob/vbn_2022_dev/allensdk/brain_observatory/behavior/data_files/stimulus_file.py#L45-L67
This code was implemented based on @danielsf's intuition. No stakeholder has told us this validation check is appropriate. It obviously isn't. Just remove this check and try to re-instantiate the BehaviorEcephysSessions.
Note: There will be a unit test that fails when you remove this block of code. It is a test that the offending code raises an exception when it is supposed to. Go ahead and remove that test.
To create a BehaviorEcephysSession, run something like
Task
The text was updated successfully, but these errors were encountered: