Mentions légales du service

Skip to content
Snippets Groups Projects
Commit c06fcb9a authored by MOEBEL Emmanuel's avatar MOEBEL Emmanuel
Browse files

add bin annotate

parent 71e681a6
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python
import os
import sys
from os.path import dirname, abspath, join, basename
import argparse
parser = argparse.ArgumentParser(description='Annotate a tomogram.')
parser.add_argument('-t', action='store', dest='path_tomo', help = 'path to tomogram')
parser.add_argument('-o', action='store', dest='path_objl', help = 'output path for object list')
args = parser.parse_args()
# Set deepfindHome to the location of this file
deepfindHome = dirname(abspath(__file__))
deepfindHome = os.path.split(deepfindHome)[0]+'/'
gui_folder = 'pyqt/annotation/'
gui_script = 'gui_annotation.py'
gui_options = ''
if args.path_tomo != None:
gui_options += ' -t ' + args.path_tomo
if args.path_objl != None:
gui_options += ' -o ' + args.path_objl
cmd = 'cd ' + deepfindHome + gui_folder + ' ; python ' + gui_script + gui_options
os.system(cmd)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment