From 83a5eb2fba574119492b2b16e2df5f3ec3ac4ee0 Mon Sep 17 00:00:00 2001 From: ntran18 <108908370+ntran18@users.noreply.github.com> Date: Wed, 22 Jan 2025 10:52:54 -0800 Subject: [PATCH] Fixing the filter for protein that need to be update to check if float == float for length, molecular wweights and pi --- database2/network-database/database_services/filter.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/database2/network-database/database_services/filter.py b/database2/network-database/database_services/filter.py index 231a7eed..426a4f9b 100644 --- a/database2/network-database/database_services/filter.py +++ b/database2/network-database/database_services/filter.py @@ -58,6 +58,10 @@ def filter_data(self, data_filepath, db_data, key_columns, update_columns): "old_standard_name": db_record[col], "new_standard_name": row[col], }) + + if col == "length" or col == "molecular_weight" or col == "pi": + if float(row[col]) == float(db_record[col]): + continue changes_needed = True break