Skip to content

Commit

Permalink
Debug and update unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
morriscb committed Aug 14, 2023
1 parent def3732 commit 3deb1e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,9 @@ def from_nwb(
stimulus_presentations=table
)
trials = None
if add_trials_dependent_values:
if add_trials_dependent_values and nwbfile.trials is not None:
trials = Trials.from_nwb(nwbfile)

return Presentations(presentations=table,
column_list=column_list,
trials=trials)
Expand Down Expand Up @@ -420,7 +421,9 @@ def from_stimulus_file(
)

return Presentations(
presentations=stim_pres_df, column_list=column_list
presentations=stim_pres_df,
column_list=column_list,
trials=trials
)

@classmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def data(self):
{
"start_time": [300.0, 330.0, 360.0],
"stop_time": [330.0, 360.0, 360.0],
"catch": [False, True, False],
"change_frame": [-99, 99, -99]
}
)

Expand Down

0 comments on commit 3deb1e5

Please sign in to comment.