Skip to content

Commit

Permalink
Merge pull request #249 from e-koch/fix_dendrogram_stats
Browse files Browse the repository at this point in the history
Fix check for dendrogram deltas when given as a string
  • Loading branch information
e-koch authored Dec 5, 2023
2 parents 6703959 + beefc45 commit 7ff60b7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions turbustat/statistics/dendrograms/dendro_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,11 @@ def __init__(self, data, header=None, min_deltas='auto',
else:
self.dendro_params = dendro_params

if min_deltas == 'auto':
self.autoset_min_deltas(num=num_deltas)
if isinstance(min_deltas, str):
if min_deltas == 'auto':
self.autoset_min_deltas(num=num_deltas)
else:
raise ValueError("min_deltas must be 'auto' or None.")
else:
self.min_deltas = min_deltas

Expand Down

0 comments on commit 7ff60b7

Please sign in to comment.