-
Notifications
You must be signed in to change notification settings - Fork 2
Description
CoordinateValidationError Traceback (most recent call last)
Cell In[66], line 1
----> 1 xcr=spk_epo_prestim.xcorr(gauss_fwhm=0.005)
File c:\Users\badania\Desktop\Vladas\pylabianca\pylabianca\spikes.py:291, in SpikeEpochs.xcorr(self, picks, picks2, sfreq, max_lag, bins, gauss_fwhm)
244 def xcorr(self, picks=None, picks2=None, sfreq=500., max_lag=0.2,
245 bins=None, gauss_fwhm=None):
246 """
247 Calculate cross-correlation histogram.
248
(...) 289 the trial.
290 """
--> 291 return xcorr_hist(
292 self, picks=picks, picks2=picks2, sfreq=sfreq, max_lag=max_lag,
293 bins=bins, gauss_fwhm=gauss_fwhm, backend='numpy'
294 )
File c:\Users\badania\Desktop\Vladas\pylabianca\pylabianca\spike_distance.py:370, in xcorr_hist(spk, picks, picks2, sfreq, max_lag, bins, gauss_fwhm, backend)
366 xcorrs, bin_centers = _convolve_xcorr(
367 xcorrs, bin_centers, gauss_fwhm, sfreq)
369 # construct xarr
--> 370 xcorrs = _turn_spike_rate_to_xarray(
371 bin_centers, xcorrs, spk, cell_names=cell, x_dim_name='lag')
372 xcorrs.name = 'count'
...
1328 f"length {sizes[d]} on the data but length {s} on "
1329 f"coordinate {k!r}"
1330 )
CoordinateValidationError: conflicting sizes for dimension 'trial': length 898 on the data but length 897 on coordinate 'has_stimon'