updated results to new figures

This commit is contained in:
2025-05-26 23:52:21 +02:00
parent d56c0c7c7e
commit fcf9cfa431
6 changed files with 44 additions and 53 deletions

View File

@@ -127,8 +127,10 @@ def plot_summary_contrasts(axs, s, cells):
print(f' mean SI = {np.mean(nli):.2f}, stdev = {np.std(nli):.2f}')
n = np.sum(nli > nli_thresh)
print(f' {n} cells ({100*n/len(nli):.1f}%) have SI > {nli_thresh:.1f}:')
for name, cv in cdata[nli > nli_thresh, ['cell', 'cvbase']].row_data():
print(f' {name:<22} CV={cv:4.2f}')
for name, cv, respmod in cdata[nli > nli_thresh,
['cell', 'cvbase', 'respmod2']].row_data():
print(f' {name:<22} CV={cv:4.2f} '
f'response modulation={respmod:4.0f}Hz')
print(f' triangle cells have SI >= {np.min(nli[cdata["triangle"] > 0.5]):.2f}')
print()
print('overall lowest baseline CV:',