Skip to content

Commit

Permalink
Only use kde if there are > 1 samples
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelicr committed Nov 27, 2024
1 parent b17e243 commit 1fc7e5c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/SOPRANO/core/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,9 @@ def gather(self):
)

joined_df.to_csv(self.samples_path)
self.plot_hist()

if self.n_samples >= 1:
self.plot_hist()

@staticmethod
def split_joined_df(
joined_df: pd.DataFrame,
Expand Down

0 comments on commit 1fc7e5c

Please sign in to comment.