Commit a24ffe93 authored by Holger Niemann's avatar Holger Niemann
Browse files

bug fix, part2, due to movement of the analysed data from Test into ArchiveDB on the 2.4.2019

parent 29aaaffa
...@@ -2486,7 +2486,7 @@ def estimate_offset(port,program,plot_it=False,verbose=0): ...@@ -2486,7 +2486,7 @@ def estimate_offset(port,program,plot_it=False,verbose=0):
else: else:
return -1 return -1
def download_heatflux_by_program(port,program,time_window=0,threads=1,testmode=True, def download_heatflux_by_program(port,program,time_window=0,threads=1,testmode=False,
version=0,verbose=0,givealpha=False,request=True): version=0,verbose=0,givealpha=False,request=True):
""" """
port: string or integer port: string or integer
...@@ -2526,7 +2526,7 @@ def download_heatflux_by_program(port,program,time_window=0,threads=1,testmode=T ...@@ -2526,7 +2526,7 @@ def download_heatflux_by_program(port,program,time_window=0,threads=1,testmode=T
print("download_heatflux_by_program: Error! program not found") print("download_heatflux_by_program: Error! program not found")
return False,0,-1 return False,0,-1
def download_heatflux_by_times(port,tstart,tend,time_window=0,threads=1,testmode=True, def download_heatflux_by_times(port,tstart,tend,time_window=0,threads=1,testmode=False,
version=0,verbose=0,request=True): version=0,verbose=0,request=True):
""" """
port: string or integer port: string or integer
...@@ -2597,7 +2597,7 @@ def download_heatflux_by_times(port,tstart,tend,time_window=0,threads=1,testmode ...@@ -2597,7 +2597,7 @@ def download_heatflux_by_times(port,tstart,tend,time_window=0,threads=1,testmode
f.close() f.close()
return exist,time,frames return exist,time,frames
def download_heatflux_mapping_reference(timepoint=None,version=0,testmode=True,verbose=0): def download_heatflux_mapping_reference(timepoint=None,version=0,testmode=False,verbose=0):
""" """
return exist(boolean) and dictonary of the mappings informations return exist(boolean) and dictonary of the mappings informations
""" """
...@@ -2628,7 +2628,7 @@ def download_heatflux_mapping_reference(timepoint=None,version=0,testmode=True,v ...@@ -2628,7 +2628,7 @@ def download_heatflux_mapping_reference(timepoint=None,version=0,testmode=True,v
mappings['Target']=(frames[6],{1:"TM1-4h",2:"TM5-6h",3:"TM7-9h",4:"TM1-3v"}) mappings['Target']=(frames[6],{1:"TM1-4h",2:"TM5-6h",3:"TM7-9h",4:"TM1-3v"})
return exist,mappings return exist,mappings
def download_heatflux_scene_model_reference(port,timepoint=None,program=None,version=0,testmode=True,verbose=0): def download_heatflux_scene_model_reference(port,timepoint=None,program=None,version=0,testmode=False,verbose=0):
""" """
return exist(boolean) and dictonary of the mappings informations return exist(boolean) and dictonary of the mappings informations
""" """
...@@ -2757,7 +2757,7 @@ def give_finger_ID(profile,finger=None): ...@@ -2757,7 +2757,7 @@ def give_finger_ID(profile,finger=None):
return success,fingerID return success,fingerID
def get_heatflux_profile(port,profile,finger=None,timepoint=1,program=None,tstart=None, def get_heatflux_profile(port,profile,finger=None,timepoint=1,program=None,tstart=None,
tend=None,testmode=True,version=0,verbose=0): tend=None,testmode=False,version=0,verbose=0):
""" """
returns exist,time,s in m, heat flux in W/m2 returns exist,time,s in m, heat flux in W/m2
...@@ -2826,7 +2826,7 @@ def get_heatflux_profile(port,profile,finger=None,timepoint=1,program=None,tstar ...@@ -2826,7 +2826,7 @@ def get_heatflux_profile(port,profile,finger=None,timepoint=1,program=None,tstar
raise Exception("get_heatflux_profile: Unknown port, FLIR data is unsupported at the moment") raise Exception("get_heatflux_profile: Unknown port, FLIR data is unsupported at the moment")
else: else:
### if the program goes up to here, time okay, finger okay,port okay, lets download it ### if the program goes up to here, time okay, finger okay,port okay, lets download it
exist,timo,frames=download_heatflux_by_times(port,tstart,tend,time_window=0,threads=1,testmode=True,version=version,verbose=verbose-1) exist,timo,frames=download_heatflux_by_times(port,tstart,tend,time_window=0,threads=1,testmode=False,version=version,verbose=verbose-1)
if exist: if exist:
return extract_heatflux_profile_from_DL(time=(np.asarray(timo)-t1)/1e9,images=frames,profile=int(fingerID%100),finger=int(fingerID/100),inputchecked=inputcheck,verbose=verbose-1) return extract_heatflux_profile_from_DL(time=(np.asarray(timo)-t1)/1e9,images=frames,profile=int(fingerID%100),finger=int(fingerID/100),inputchecked=inputcheck,verbose=verbose-1)
else: else:
...@@ -2953,7 +2953,7 @@ def extract_temperature_profile_from_DL(port,time,images,profile,finger=None,tim ...@@ -2953,7 +2953,7 @@ def extract_temperature_profile_from_DL(port,time,images,profile,finger=None,tim
return False,0,0,0 return False,0,0,0
def download_divertor_load(port,targetmodule=None,program=None,tstart=None,tend=None,version=0,verbose=0,testmode=True,request=True): def download_divertor_load(port,targetmodule=None,program=None,tstart=None,tend=None,version=0,verbose=0,testmode=False,request=True):
""" """
""" """
TMchadict={ TMchadict={
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment