Commit 555d3ed1 authored by Holger Niemann's avatar Holger Niemann
Browse files

Update V2.9.0: change multiprocessing to multithreading, performance improved,...

Update V2.9.0: change multiprocessing to multithreading, performance improved, less archivecalls per download
parent edc15afb
......@@ -153,7 +153,7 @@ def check_backgroundframe(backgroundframe,threshold=50):
return valid,np.mean(dataset)
def read_bad_pixels_from_file(port, shot_no=None, program=None):
def read_bad_pixels_from_file(port, shot_no=None, program=None,time_ns=None):
'''Reads bad pixels stored in *.bpx file on E4 server.
Requires one of the optional arguments shot_no or program.
......@@ -169,6 +169,8 @@ def read_bad_pixels_from_file(port, shot_no=None, program=None):
OP = get_OP_by_time(shot_no=shot_no)
elif program is not None:
OP = get_OP_by_time(program_str=program)
elif time_ns is not None:
OP = get_OP_by_time(time_ns=time_ns)
raise Exception('read_bad_pixels_from_file: ERROR! Need either shot no. or program string.')
This diff is collapsed.
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