From 47c80f45a302348821674486793ee1051bf53fa5 Mon Sep 17 00:00:00 2001 From: Mark Morley Date: Thu, 15 Feb 2024 14:51:16 -0500 Subject: [PATCH] fix: add more instructive error --- plan_belt/synchro_summarizer/ingest.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/plan_belt/synchro_summarizer/ingest.py b/plan_belt/synchro_summarizer/ingest.py index 4d76a9b..49aef33 100644 --- a/plan_belt/synchro_summarizer/ingest.py +++ b/plan_belt/synchro_summarizer/ingest.py @@ -89,7 +89,14 @@ def __create_df(self, index): elif "expects" in df.iloc[2, 0].strip(): self.anomolies[unique_name] = df else: - print("what else could go wrong?") + print(f"!!!!!!something wrong with {intersection_name}") + print(f"!!!!!!something wrong with {intersection_name}") + print(f"!!!!!!something wrong with {intersection_name}") + print(f"!!!!!!something wrong with {intersection_name}") + print(f"!!!!!!something wrong with {intersection_name}") + print(f"!!!!!!something wrong with {intersection_name}") + print(f"!!!!!!something wrong with {intersection_name}") + print(f"!!!!!!something wrong with {intersection_name}") self.count += 1 return df, unique_name @@ -484,3 +491,7 @@ def create_csv(self): def return_queues_for_intersection(self): dfs = self.qb_report() return dfs + + +if __name__ == "__main__": + SynchroTxt("/mnt/g/My Drive/test/Existing_AM_HCM 6th_report.txt")