Skip to content

Commit

Permalink
Improve Tinker version reading from bdw2992
Browse files Browse the repository at this point in the history
  • Loading branch information
leeping committed Mar 11, 2021
1 parent 576022c commit fbb64f2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/tinkerio.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,11 @@ def calltinker(self, command, stdin=None, print_to_screen=False, print_command=F
if len(vw.split('.')) <= 2:
vn = float(vw)
else:
vn = float(vw.split('.')[0]) + 0.1*float(vw.split('.')[1])
ls = vw.split('.')
last = ls[1:]
first = ls[0]
vn = first+'.'+''.join(last)
vn = float(vn)
vn_need = 6.3
try:
if vn < vn_need:
Expand Down

0 comments on commit fbb64f2

Please sign in to comment.