'fli_control' related stub
This commit is contained in:
@@ -26,13 +26,22 @@ def set_focus(foc_val):
|
|||||||
|
|
||||||
|
|
||||||
def get_image(filename, exp_time):
|
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 = [
|
cmd = [
|
||||||
"fli_control",
|
"fli_control",
|
||||||
"-r",
|
"-r",
|
||||||
"/tmp/10micron.fitsheader",
|
"/tmp/10micron.fitsheader",
|
||||||
"-x",
|
"-x",
|
||||||
"{:d}".format(np.round(exp_time * 1000)), # to microseconds
|
"{:d}".format(np.round(exp_time * 1000)), # to microseconds
|
||||||
filename,
|
fname,
|
||||||
]
|
]
|
||||||
|
|
||||||
ret = sp.run(cmd, stdout=sp.PIPE, stderr=sp.PIPE)
|
ret = sp.run(cmd, stdout=sp.PIPE, stderr=sp.PIPE)
|
||||||
|
|||||||
Reference in New Issue
Block a user