Skip to content

Commit

Permalink
ENH use single quotes inside double quotes in get_aro_mapping_table()…
Browse files Browse the repository at this point in the history
… rather than single quotes within single quotes
  • Loading branch information
Vedanth-Ramji committed Jun 24, 2024
1 parent 3a3301a commit 19f2e8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion argnorm/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def get_aro_mapping_table(database):
aro_mapping_table.drop(index=set(manual_curation.index) & set(aro_mapping_table.index), inplace=True)
aro_mapping_table = pd.concat([aro_mapping_table, manual_curation])
aro_number_length = 7
aro_mapping_table['ARO'] = aro_mapping_table['ARO'].map(lambda a: f'ARO:{str(a).zfill(aro_number_length).removesuffix('.0')}', na_action='ignore')
aro_mapping_table['ARO'] = aro_mapping_table['ARO'].map(lambda a: f"ARO:{str(a).zfill(aro_number_length).removesuffix('.0')}", na_action='ignore')
return aro_mapping_table

def map_to_aro(gene, database):
Expand Down

0 comments on commit 19f2e8b

Please sign in to comment.