Syncing to home.

This commit is contained in:
j-hartling
2026-05-08 18:21:47 +02:00
parent 4b4a04ab2a
commit f14de13823
16 changed files with 578 additions and 395 deletions

View File

@@ -1,4 +1,5 @@
import numpy as np
import matplotlib.pyplot as plt
from thunderhopper.filters import sosfilter
from thunderhopper.model import convolve_kernels, process_signal
from thunderhopper.modeltools import load_data
@@ -54,7 +55,12 @@ elif mode == 'short':
conv = convolve_kernels(inv, config['kernels'], config['k_specs'])
elif mode == 'field':
starter = starter[:, channels].ravel(order='F')
conv = process_signal(config, 'conv', signal=starter, rate=config['rate'])[0]['conv']
conv = process_signal(config, 'conv', signal=starter, rate=config['rate'])[0]['conv']
# fig, (ax1, ax2) = plt.subplots(2, 1, sharex=True)
# ax1.plot(starter)
# ax2.plot(conv)
# plt.show()
# embed()
# Get baseline kernel response SDs:
sds = conv[segment, :].std(axis=0)