From 7d945946ab1041cb245a34184d8b28f587987310 Mon Sep 17 00:00:00 2001
From: Peter Swain <pswain@Home-iMac.local>
Date: Tue, 21 May 2024 15:44:04 +0100
Subject: [PATCH] feature(bud_to_bud_plot): added verbose

---
 src/wela/plotting.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/wela/plotting.py b/src/wela/plotting.py
index 778c928..5040d7e 100644
--- a/src/wela/plotting.py
+++ b/src/wela/plotting.py
@@ -616,6 +616,7 @@ def bud_to_bud_plot(
     title=None,
     filter_func=None,
     show_figure=True,
+    verbose=False,
 ):
     """
     Plot the median and percentiles of a signal between consecutive buddings.
@@ -655,6 +656,8 @@ def bud_to_bud_plot(
         If False, only plot is called and no figure created so multiple
         data sets can be shown on the same plot by calling bud_to_bud_plot
         multiple times.
+    verbose: boolean
+        If True, print messages.
 
     Example
     -------
@@ -683,6 +686,8 @@ def bud_to_bud_plot(
         buddings,
         no_future_buddings_index=no_future_buddings - 1,
     )
+    if verbose:
+        print(f"bud_to_bud_plot: number of cells is {len(local_signals)}")
     if local_times:
         # find values for normalised time between 0 and no_future_buddings
         if no_t_values is None:
-- 
GitLab