StingraySoftware / stingray

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

analyze_segments fails when some interval gives invalid data #821

Closed matteobachetti closed 5 months ago

matteobachetti commented 5 months ago

Description of the Bug

Inside StingrayTimeseries.analyze_segments, there is a results = np.array(results) operation that fails whenever the rows of results have different shapes. In particular, it fails when the segment has not enough data and the row is given nan by default.

Steps/Code to Replicate the Bug

NA

Expected Results

NA

Actual Results

NA