Skip to content

Commit

Permalink
Verify kind of iterable
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobachetti committed Apr 26, 2024
1 parent 526e1ef commit 1ad8ef9
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 @@ -2662,7 +2662,7 @@ def analyze_segments(self, func, segment_size, fraction_step=1, **kwargs):

res = func(lc_filt, **kwargs)
results.append(res)
if isinstance(res, Iterable):
if isinstance(res, Iterable) and not isinstance(res, str):
n_outs = len(res)

# If the function returns multiple outputs, we need to separate them
Expand Down

0 comments on commit 1ad8ef9

Please sign in to comment.