Skip to content

Commit

Permalink
Fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobachetti committed Dec 15, 2023
1 parent 40e44ab commit 52a776d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stingray/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2369,7 +2369,7 @@ def analyze_segments(self, func=None, segment_size=None, fraction_step=1, **kwar
>>> # Define a function that calculates the mean
>>> mean_func = lambda ts: np.mean(ts.counts)
>>> # Calculate the mean in segments of 5 seconds
>>> start, stop, res = ts.analyze_chunks(5, mean_func)
>>> start, stop, res = ts.analyze_segments(mean_func, 5)
>>> len(res) == 2
True
>>> np.allclose(res, 10)
Expand Down

0 comments on commit 52a776d

Please sign in to comment.