Skip to content

Commit

Permalink
fixed feature_set warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Bribak committed Jul 2, 2024
1 parent f6ff830 commit 64ad05f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/lib/glycowork/motif/annotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def annotate_dataset(glycans, motifs = None, feature_set = ['known'],
if any([k in ''.join(glycans) for k in [';', '-D-', 'RES', '=']]):
raise Exception
if difference := [item for item in feature_set if item not in ['known', 'graph', 'terminal', 'terminal1',
'terminal2', 'terminal3', 'custom', 'chemical']]:
'terminal2', 'terminal3', 'custom', 'chemical', 'exhaustive']]:
print(f"Warning: {difference} not recognized as features.")
if motifs is None:
motifs = motif_list
Expand Down
2 changes: 1 addition & 1 deletion glycowork/motif/annotate.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def annotate_dataset(glycans, motifs = None, feature_set = ['known'],
if any([k in ''.join(glycans) for k in [';', '-D-', 'RES', '=']]):
raise Exception
if difference := [item for item in feature_set if item not in ['known', 'graph', 'terminal', 'terminal1',
'terminal2', 'terminal3', 'custom', 'chemical']]:
'terminal2', 'terminal3', 'custom', 'chemical', 'exhaustive']]:
print(f"Warning: {difference} not recognized as features.")
if motifs is None:
motifs = motif_list
Expand Down

0 comments on commit 64ad05f

Please sign in to comment.