Skip to content

Commit

Permalink
Merge pull request #23 from asapdiscovery/fix_for_latest
Browse files Browse the repository at this point in the history
fix for latest changes on asap main
  • Loading branch information
hmacdope authored Dec 20, 2023
2 parents b474a10 + d5894f6 commit 493eb17
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{html_content}}
6 changes: 4 additions & 2 deletions argos/argos_viewer/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,12 @@ def target_pdb_detail_view(request, pk):

tf = tempfile.NamedTemporaryFile()
html_viz = HTMLVisualizer(
[c.ligand.to_oemol()], [tf], obj.target, c.target.to_oemol(), color_method="fitness"
[c.ligand.to_oemol()], [tf], obj.target, c.target.to_oemol(), color_method="fitness", align=False
)
# align=True is broken, see https://github.com/choderalab/asapdiscovery/issues/709
html = html_viz.make_poses_html()[0]
except:
except Exception as e:
print(f"rendering failed with exception {e}")
return redirect("failed")

return HttpResponse(html)
Expand Down
2 changes: 2 additions & 0 deletions devtools/conda-envs/argos-ubuntu-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,6 @@ dependencies:
- psycopg2-binary
- django-environ
- whitenoise
- celery
- logomaker

0 comments on commit 493eb17

Please sign in to comment.