Mentions légales du service

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

annotate: added -scipion option to hide 'load objl' button when DeepFinder is opened by Scipion

parent b1bdb635
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ 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')
parser.add_argument('-scipion', action='store_true', help='option for launching in scipion (hides some buttons)')
args = parser.parse_args()
# Set deepfindHome to the location of this file
......@@ -22,6 +23,8 @@ if args.path_tomo != None:
gui_options += ' -t ' + args.path_tomo
if args.path_objl != None:
gui_options += ' -o ' + args.path_objl
if args.scipion:
gui_options += ' -scipion '
cmd = 'cd ' + deepfindHome + gui_folder + ' ; python ' + gui_script + gui_options
......
......@@ -352,6 +352,7 @@ if __name__ == "__main__":
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')
parser.add_argument('-scipion', action='store_true', help='option for launching in scipion (hides some buttons)')
args = parser.parse_args()
app = QtWidgets.QApplication(sys.argv)
......@@ -368,5 +369,7 @@ if __name__ == "__main__":
win.winDisp.button_load_tomo.hide() # hide load tomo button
if args.path_objl != None:
win.path_objl = args.path_objl
if args.scipion:
win.button_open.hide()
sys.exit(app.exec_())
\ 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