Skip to content

run_properties$summary table durations incorrect. #101

@nohelix

Description

@nohelix

❗ Related to #100

Issue

All durations listed regardless of type, i.e. for type 0 trials even type 1 trial durations are listed.

Repeatability

Import file in #100 or Red1_edge_BBN_60dB_1-2000ms_12s_BG_PKN_0dB_20240325-101031_BOX#007.zip
Halt during naming
look at run_properties$stim_encoding_table and at run_properties$summary

You should get:
run_properties$stim_encoding_table

  Repeat_number Type Stim Source Freq (kHz) Inten (dB) Dur (ms) Delay (s) Nose Out TL (s) Time Out (s) Stim_ID
1             1    1         BBN          0         60     2000       1 4               2            0       1
2             1    1         BBN          0         60      300       1 4               2            0       2
3             1    1         BBN          0         60      100       1 4               2            0       3
4             1    1         BBN          0         60       50       1 4               2            0       4
5             1    1         BBN          0         60       10       1 4               2            0       5
6             1    1         BBN          0         60        5       1 4               2            0       6
7             1    1         BBN          0         60        1       1 4               2            0       7
8             3    0         BBN          0         60        0       1 4               2           12       8

run_properties$summary

# A tibble: 2 × 7
# Groups:   Freq (kHz), Delay (s), Type [2]
  `Freq (kHz)` `Delay (s)`  Type dB_min dB_max dB_step_size duration    
         <dbl> <chr>       <dbl>  <dbl>  <dbl>        <dbl> <list>      
1            0 1 4             0     60     60            0 <df [8 × 1]>
2            0 1 4             1     60     60            0 <df [8 × 1]>

⬆️ duration should be <df [1 × 1]> for type 0 and <df [7 × 1]> for type 1

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