Skip to content

Commit

Permalink
Fixing the filter for protein that need to be update to check if floa…
Browse files Browse the repository at this point in the history
…t == float for length, molecular wweights and pi
  • Loading branch information
ntran18 committed Jan 22, 2025
1 parent e5017cb commit 83a5eb2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions database2/network-database/database_services/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 83a5eb2

Please sign in to comment.