Skip to content

Commit

Permalink
Merge branch 'pr279'
Browse files Browse the repository at this point in the history
  • Loading branch information
deeenes committed Feb 16, 2024
2 parents 2496ce4 + b0ce47c commit fbff6cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypath/inputs/cellphonedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def _cellphonedb_annotations(url, name_method):

def get_bool(rec, attr):

return attr in rec and rec[attr] == 'True'
return attr in rec and rec[attr].upper() == 'TRUE'

def get_desc(rec, attr):

Expand All @@ -99,7 +99,7 @@ def get_desc(rec, attr):
value = (
''
if (
attr in rec and rec[attr] == 'False' or
attr in rec and rec[attr].upper() == 'FALSE' or
attr not in rec and not rec[desc]
) else
rec[desc]
Expand Down

0 comments on commit fbff6cd

Please sign in to comment.