TEMP_FILE.write('-outPathTemp '+LOCAL_DATASET_PATH_TRAC_TEMP+'\n')
		TEMP_FILE.close()

		a070_RunTracing.main( FARSIGHT_BIN_EXE, optionsTracing, runTrac_log, LOCAL_DATASET_PATH_DATA )
		elapsed_1 = (time.time() - start_1)
		print "\t\tTime_1: hm: "+str(round(elapsed_1/3600))+":"+str(round(elapsed_1/60))

	if runTrac_db == 1:
		start_2 = time.time()
		runTrac_db_log = LOCAL_DATASET_PATH_LOG +'/runTrac_db.log'
		TEMP_FILE = open(runTrac_db_log, 'w')
		TEMP_FILE.write('TracingLog\n')
		TEMP_FILE.close()

		# Trace editor projection
		a024_ProjectFloat.main( LOCAL_DATASET_PATH_LOG, FARSIGHT_BIN_EXE, LOCAL_DATASET_PATH_TRAC_DEBUG, LOCAL_DATASET_PATH_TRAC_TEMP+'/GFP_MNT_PRE', runTrac_db_log, 'ORG', 'NRRD' )
		#a021_Project.main( LOCAL_DATASET_PATH_LOG, FARSIGHT_BIN_EXE, LOCAL_DATASET_PATH_SEGM_DEBUG, FILE_GFP_BS_CV_RE_bit+'_label', runSegm_db_log, 'ORG_RES_BIN' )
		#a023_ProjectRGB.main( LOCAL_DATASET_PATH_LOG, FARSIGHT_BIN_EXE, LOCAL_DATASET_PATH_SEGM_DEBUG, FILE_GFP_BS_CV_RE_bit, FILE_GFP_BS_CV_RE_bit+'_soma', '_GFP_SOMA_', runSegm_db_log )
		#a023_ProjectRGB.main( LOCAL_DATASET_PATH_LOG, FARSIGHT_BIN_EXE, LOCAL_DATASET_PATH_SEGM_DEBUG, FILE_DAP_BS_RE_bit, FILE_GFP_BS_CV_RE_bit+'_label', '_DAPI_LABEL_', runSegm_db_log )
		elapsed_2 = (time.time() - start_2)
		print "\t\tTime_2: hm: "+str(round(elapsed_2/3600))+":"+str(round(elapsed_1/60))

	if( REMOVE_TEMP_TRAC == 1 ):
		shutil.rmtree(LOCAL_DATASET_PATH_TRAC_TEMP)

		
	print "# ---------------------------------------------------------------------------------------------------------------------------------------"
	print "# Run AstroTracing: "+DATA_FOLDER+' '+str(datetime.datetime.now())
	print "# ---------------------------------------------------------------------------------------------------------------------------------------"
	if runAstroTrac == 1:
		start_1 = time.time()
Esempio n. 2
0
    if REMOVE_TEMP_TRAC == 1:
        shutil.rmtree(LOCAL_DATASET_PATH_TRAC_TEMP)

    if runTrac_db == 1:
        start_2 = time.clock()
        runTrac_db_log = LOCAL_DATASET_PATH_LOG + "/runTrac_db.log"
        TEMP_FILE = open(runTrac_db_log, "w")
        TEMP_FILE.write("TracingLog\n")
        TEMP_FILE.close()

        # Trace editor projection
        a024_ProjectFloat.main(
            LOCAL_DATASET_PATH_LOG,
            FARSIGHT_BIN_EXE,
            LOCAL_DATASET_PATH_TRAC_DEBUG,
            LOCAL_DATASET_PATH_TRAC_TEMP + "/GFP_MNT_PRE",
            runTrac_db_log,
            "ORG",
            "NRRD",
        )
        # a021_Project.main( LOCAL_DATASET_PATH_LOG, FARSIGHT_BIN_EXE, LOCAL_DATASET_PATH_SEGM_DEBUG, FILE_GFP_BS_CV_RE_bit+'_label', runSegm_db_log, 'ORG_RES_BIN' )
        # a023_ProjectRGB.main( LOCAL_DATASET_PATH_LOG, FARSIGHT_BIN_EXE, LOCAL_DATASET_PATH_SEGM_DEBUG, FILE_GFP_BS_CV_RE_bit, FILE_GFP_BS_CV_RE_bit+'_soma', '_GFP_SOMA_', runSegm_db_log )
        # a023_ProjectRGB.main( LOCAL_DATASET_PATH_LOG, FARSIGHT_BIN_EXE, LOCAL_DATASET_PATH_SEGM_DEBUG, FILE_DAP_BS_RE_bit, FILE_GFP_BS_CV_RE_bit+'_label', '_DAPI_LABEL_', runSegm_db_log )
        elapsed_2 = time.clock() - start_2
        print "\t\tTime_2: " + str(elapsed_2)

        # print "# ---------------------------------------------------------------------------------------------------------------------------------------"
        # print "# Move Files: "+DATA_FOLDER
        # print "# ---------------------------------------------------------------------------------------------------------------------------------------"

        # if( MOVE_RESULTS == 1):