'fli_control' related stub

This commit is contained in:
2024-07-29 18:01:23 +03:00
parent 051de30fb9
commit 4ee5591a15

View File

@@ -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)