'fli_control' related stub
This commit is contained in:
@@ -26,13 +26,22 @@ def set_focus(foc_val):
|
||||
|
||||
|
||||
def get_image(filename, exp_time):
|
||||
#
|
||||
# Eddy's 'fli_control' related stub:
|
||||
# filename is expected in form 'rootname_DDDD.ext'
|
||||
# convert it to 'rootname'
|
||||
#
|
||||
|
||||
fname = filename.split("_")
|
||||
fname = fname[0]
|
||||
|
||||
cmd = [
|
||||
"fli_control",
|
||||
"-r",
|
||||
"/tmp/10micron.fitsheader",
|
||||
"-x",
|
||||
"{:d}".format(np.round(exp_time * 1000)), # to microseconds
|
||||
filename,
|
||||
fname,
|
||||
]
|
||||
|
||||
ret = sp.run(cmd, stdout=sp.PIPE, stderr=sp.PIPE)
|
||||
|
||||
Reference in New Issue
Block a user