Skip to content

Commit

Permalink
Expand warning to explain that one needs 30 segments
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobachetti committed Jan 29, 2024
1 parent 6c30946 commit 02fe583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stingray/fourier.py
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ def get_rms_from_rms_norm_periodogram(power_sqrms, poisson_noise_sqrms, df, M, l
warnings.warn(
f"{quantity} power spectral bins have M<30. The error bars on the rms might be wrong. "
"In some cases one might try to increase the number of segments, for example by "
"reducing the segment size."
"reducing the segment size, in order to obtain at least 30 segments."
)
# But they cannot be of different kind. There would be something wrong with the data
if m_is_iterable != df_is_iterable:
Expand Down

0 comments on commit 02fe583

Please sign in to comment.