From abb181eeef620f97991fb1bec1e9ccb1fbb9a610 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sun, 17 Mar 2024 10:13:35 +0100 Subject: [PATCH] first working version compare --- rowers/.#dataroutines.py | 1 - rowers/dataroutines.py | 1 - rowers/interactiveplots.py | 4 ++++ 3 files changed, 4 insertions(+), 2 deletions(-) delete mode 120000 rowers/.#dataroutines.py diff --git a/rowers/.#dataroutines.py b/rowers/.#dataroutines.py deleted file mode 120000 index f9fb1e7f..00000000 --- a/rowers/.#dataroutines.py +++ /dev/null @@ -1 +0,0 @@ -sander@rowsandall-2.231246:1710428505 \ No newline at end of file diff --git a/rowers/dataroutines.py b/rowers/dataroutines.py index d444843c..ac60f398 100644 --- a/rowers/dataroutines.py +++ b/rowers/dataroutines.py @@ -1314,7 +1314,6 @@ def getsmallrowdata_db(columns, ids=[], doclean=True, workstrokesonly=True, comp workstrokesonly=workstrokesonly) data.dropna(axis=1, how='all', inplace=True) data.dropna(axis=0, how='any', inplace=True) - print(data) return data except TypeError: pass diff --git a/rowers/interactiveplots.py b/rowers/interactiveplots.py index c070913b..57a709b4 100644 --- a/rowers/interactiveplots.py +++ b/rowers/interactiveplots.py @@ -5313,6 +5313,10 @@ def interactive_multiple_compare_chart(ids, xparam, yparam, plottype='line', if datadf.empty: # pragma: no cover return ['', '

No non-zero data in selection

', '', 'No non-zero data in selection'] + + if (xparam == 'time'): + datadf[xparam] = datadf[xparam] - datadf[xparam].iloc[0] + data_dict = datadf.to_dict("records")