Traceback (most recent call last):
File ~\AppData\Local\Programs\Python\Python311\Lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec
exec(code, globals, locals)
File c:\users\anton\desktop\dio\h5read.py:104
avg_buff, success, error = series.averageFrames(buff_range, 'sub', 'CorMap', 0.01, 'Bonferroni', forced = True)
File ~\AppData\Local\Programs\Python\Python311\Lib\site-packages\bioxtasraw\SECM.py:1528 in averageFrames
avg_list = sasm_list
UnboundLocalError: cannot access local variable 'sasm_list' where it is not associated with a value
Basically sasm_list is only defined in the case of an unsubtracted series at line 1485:
Although maybe you want to fix it properly to handle all possible cases.
Also, the parameters' default values for this method aren't set as they are described in the documentation, but that's also an easy fix.