Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1 trial files can cause issues due to stats calc #47

Open
nohelix opened this issue Feb 24, 2023 · 2 comments
Open

1 trial files can cause issues due to stats calc #47

nohelix opened this issue Feb 24, 2023 · 2 comments

Comments

@nohelix
Copy link
Collaborator

nohelix commented Feb 24, 2023

Loading file... C:/Users/Noelle/Box/Behavior Lab/Projects (Behavior)/TTS/data/20220615/Green2_Green2_4-32kHz_MIX5step_50ms_16s_1s_BG_PNK_50dB_20220615-105130_BOX#006.mat
Stim file: Green2_4-32kHz_MIX5step_50ms_16s_1s_BG_PNK_50dB
Trials: 1 Hit%: NaN FA%: 100
Analysis type: Tone (Thresholding)
Warning in Calculate_Threshold() :
Can not caluclate TH due to < 1 block of trials.

Calculated run statistics.
Warning in Build_Filename() :
Caution: mismatch in provided filename: Green2_4-32kHz_MIX5step_50ms_16s_1s_BG_PNK_50dB
calculated filename by contents: Green2_4-32kHz_MIX5stepdB_50ms_16s_1s_BG_PKN_50dB

Warning in Check_Assigned_Filename() :
ACTION REQUIRED: Was rat run on the wrong file?
ERROR: Filename -- Green2_4-32kHz_MIX5stepdB_50ms_16s_1s_BG_PKN_50dB -- does not match
Assignment -- Green2_4-32kHz_MIX5stepdB_50ms_16s_1s_BG_PNK_50dB

Filename checks complete.
Weight checks complete.
Warning in Check_Performance_Cutoffs() :
Low trial count: 1 (cutoff is 240)

Error in if (analysis$stats$hit_percent < user_settings$minimum_hit_percent) { :
missing value where TRUE/FALSE needed

Possible solution:

  1. skip entering single trial files - most likely in which case no code change needs to be made.
  2. bypass doing stats calc for files like this.
@nohelix nohelix added wontfix This will not be worked on priority: low and removed wontfix This will not be worked on labels Feb 24, 2023
@nohelix
Copy link
Collaborator Author

nohelix commented Feb 25, 2023

Probably just need to check that type 1 trials are > 0, otherwise bail out of stats calc with warning "Too few trials to calculate stats"

But need to watch out for the gotchas that:

  • some files have no type 0 trials (e.g. some of the Oddballs)

@tofof
Copy link
Collaborator

tofof commented May 2, 2023

Note that #30 is also a bug primarily caused by low trial count. Not sure if there's a universal fix like not importing data with fewer than 20 trials or something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants