Skip to content

Commit

Permalink
Merge pull request #455 from xchem/m2ms-1239-achristie
Browse files Browse the repository at this point in the history
Fix old object references (get_pdb_info)
  • Loading branch information
alanbchristie authored Dec 6, 2023
2 parents c5812ea + f23f328 commit 099ef49
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions viewer/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,10 +666,15 @@ def get_text_scores(self, obj):
return score_dict

def get_pdb_info(self, obj):
if obj.pdb:
return obj.pdb.pdb_info.url
else:
return None
# For this (new XCA) Fragalysis phase we do not support
# PDB material in the ComputedMolecule. So instead of this (original code)
# we now return a constant 'None'
# if obj.pdb:
# return obj.pdb.pdb_info.url
# else:
# return None

return None

# def get_score_descriptions(self, obj):
# descriptions = ScoreDescription.objects.filter(computed_set=obj.computed_set)
Expand Down

0 comments on commit 099ef49

Please sign in to comment.