From c7b7f54936c2bcd28d1eab3a786a8ecd34cca3b7 Mon Sep 17 00:00:00 2001 From: Jayoung Ryu Date: Fri, 16 Aug 2024 14:31:43 -0400 Subject: [PATCH] debug non-numeric error for time column --- bean/preprocessing/data_class.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bean/preprocessing/data_class.py b/bean/preprocessing/data_class.py index 3e6f2f7..85501b6 100755 --- a/bean/preprocessing/data_class.py +++ b/bean/preprocessing/data_class.py @@ -996,7 +996,7 @@ def __init__( def _pre_init(self, time_column: str, condition_column: str): self.condition_column = self.time_column = time_column try: - max_time = self.screen.samples[time_column].max() + max_time = self.screen.samples[time_column].astype(float).max() self.screen.samples[time_column] = self.screen.samples[time_column].astype( float )