def open_action(self,info): directory_dialog = DirectoryEditorDialog() directory_dialog.edit_traits() exp_path = directory_dialog.dir_name print "Changing experimental path to %s" % exp_path os.chdir(exp_path) info.object.exp1.populate_runs(exp_path)
def open_action(self, info): directory_dialog = DirectoryEditorDialog() directory_dialog.edit_traits() exp_path = directory_dialog.dir_name print "Changing experimental path to %s" % exp_path os.chdir(exp_path) info.object.exp1.populate_runs(exp_path)
sys.path.append(src_path) import ptv1 as ptv from tracking_framebuf import read_targets # pyPTV specific imports import general import parameters as par from parameter_gui import * from calibration_gui import * from directory_editor import DirectoryEditorDialog from quiverplot import QuiverPlot from demo import * if len(sys.argv) < 2: directory_dialog = DirectoryEditorDialog() directory_dialog.configure_traits() exp_path = directory_dialog.dir_name # default_path+os.sep+'exp1' cwd = os.getcwd() try: os.chdir(exp_path) except: print('Wrong experimental directory %s' % exp_path) # class Clicker(ImageInspectorTool): """ Clicker class handles right mouse click actions from the tree and menubar actions """ left_changed = Int(1)
sys.path.append(src_path) import ptv1 as ptv from tracking_framebuf import read_targets # pyPTV specific imports import general import parameters as par from parameter_gui import * from calibration_gui import * from directory_editor import DirectoryEditorDialog from quiverplot import QuiverPlot from demo import * if len(sys.argv) < 2: directory_dialog = DirectoryEditorDialog() directory_dialog.configure_traits() exp_path = directory_dialog.dir_name # default_path+os.sep+'exp1' cwd = os.getcwd() try: os.chdir(exp_path) except: print('Wrong experimental directory %s' % exp_path) # class Clicker(ImageInspectorTool): """ Clicker class handles right mouse click actions from the tree and menubar actions """