StingraySoftware / stingray

Anything can happen in the next half hour (including spectral timing made easy)!
https://stingray.science/stingray
MIT License
174 stars 144 forks source link

`cross_correlation_notebook.ipynb` fails #845

Closed taldcroft closed 2 months ago

taldcroft commented 2 months ago

Description of the Bug

Cell 16 gives AttributeError: 'NoneType' object has no attribute 'counts'

cs = CrossCorrelation()
cs.corr = np.array([660, 1790, 3026, 4019, 5164, 6647, 8105, 7023, 6012, 5162])
time_shift, time_lags, n = cs.cal_timeshift(dt=0.5)

Steps/Code to Replicate the Bug

Run the notebook (MacOS ARM, Python 3.12).

Expected Results

No exception.

Actual Results

Exception.

matteobachetti commented 2 months ago

Resolved in 8d1c3ff