Skip to content

Commit

Permalink
fixed vina scoring
Browse files Browse the repository at this point in the history
  • Loading branch information
lmdu committed Sep 18, 2024
1 parent ce9ade7 commit 8b24123
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
__all__ = ['DOCKEY_VERSION', 'DOCKEY_BUILD', 'DOCKEY_ABOUT',
'DOCKEY_THANKS', 'COMPAT_VERSION']

DOCKEY_VERSION = "1.0.1"
DOCKEY_VERSION = "1.0.2"

DOCKEY_BUILD = "240703"
DOCKEY_BUILD = "240918"

COMPAT_VERSION = "1.0.0"

Expand Down
11 changes: 10 additions & 1 deletion src/setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,10 @@ def read_settings(self):

elif w.wgtype == 'select':
text = self.settings.value(w.option, w.default, str)

if text == 'ad4':
text = 'autodock4'

idx = w.widget.findText(text)
w.widget.setCurrentIndex(idx)

Expand All @@ -336,7 +340,12 @@ def write_settings(self):
self.settings.setValue(w.option, w.widget.value())

elif w.wgtype == 'select':
self.settings.setValue(w.option, w.widget.currentText())
text = w.widget.currentText()

if text == 'autodock4':
text = 'ad4'

self.settings.setValue(w.option, text)

def reset_settings(self):
self.settings.remove('VINA')
Expand Down
6 changes: 6 additions & 0 deletions src/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,12 @@ def wheelEvent(self, ev):
self.pymol.button(button, 0, *args)
self.pymol.button(button, 1, *args)

def keyPressEvent(self, ev):
args = keyPressEventToPyMOLButtonArgs(ev)

if args is not None:
self.pymol.button(*args)

##########################
# OpenGL
##########################
Expand Down

0 comments on commit 8b24123

Please sign in to comment.