Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanZR authored Jul 9, 2023
1 parent cb808b9 commit aca5aa4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions LaBOX.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ def main():
except getopt.GetoptError as msg:
print(f'LaBOX.py')
print(f'╰─○ {msg}')
sys.exit()
sys.exit(2)

FILENAME = None
FIND_CENTER = None
CENTER = False
SCALE = 2
xcoor = None
ycoor = None
Expand All @@ -137,10 +137,9 @@ def main():
if opt in ('-l', '--ligand'):
FILENAME = arg
if opt in ('-s', '--scale'):
SCALE = arg
SCALE = float(SCALE)
SCALE = float(arg)
if opt in ('-c', '--center'):
FIND_CENTER = True
CENTER = True
if opt in ('-h', '--help'):
usage()
sys.exit()
Expand All @@ -152,7 +151,7 @@ def main():
file_handler(TARGET)
EXT = os.path.splitext(TARGET)[-1]
DATA = open(TARGET, 'r').readlines()
LaBOX(DATA, EXT, SCALE, FIND_CENTER)
LaBOX(DATA, EXT, SCALE, CENTER)

if __name__ == '__main__':
main()
main()

0 comments on commit aca5aa4

Please sign in to comment.