Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -153,7 +153,7 @@ def check_backgroundframe(backgroundframe,threshold=50): ...@@ -153,7 +153,7 @@ def check_backgroundframe(backgroundframe,threshold=50):
valid=False valid=False
return valid,np.mean(dataset) 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. '''Reads bad pixels stored in *.bpx file on E4 server.
Requires one of the optional arguments shot_no or program. Requires one of the optional arguments shot_no or program.
IN IN
...@@ -169,6 +169,8 @@ def read_bad_pixels_from_file(port, shot_no=None, program=None): ...@@ -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) OP = get_OP_by_time(shot_no=shot_no)
elif program is not None: elif program is not None:
OP = get_OP_by_time(program_str=program) OP = get_OP_by_time(program_str=program)
elif time_ns is not None:
OP = get_OP_by_time(time_ns=time_ns)
else: else:
raise Exception('read_bad_pixels_from_file: ERROR! Need either shot no. or program string.') raise Exception('read_bad_pixels_from_file: ERROR! Need either shot no. or program string.')
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment