gui delay startup, flomni loading params fix
This commit is contained in:
@@ -988,12 +988,14 @@ class FlomniAlignmentMixin:
|
||||
use_vertical_default_values=True,
|
||||
get_data_from_gui=False,
|
||||
):
|
||||
|
||||
tomo_alignment_fit = np.zeros((2, 5))
|
||||
|
||||
if not get_data_from_gui:
|
||||
"""
|
||||
Read the alignment parameters from xray eye fit.
|
||||
|
||||
"""
|
||||
tomo_alignment_fit = np.zeros((2, 5))
|
||||
with open(os.path.join(dir_path, "ptychotomoalign_Ax.txt"), "r") as file:
|
||||
tomo_alignment_fit[0][0] = file.readline()
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import builtins
|
||||
import time
|
||||
|
||||
# from csaxs_bec.bec_ipython_client.plugins.cSAXS import epics_get, epics_put, fshopen, fshclose
|
||||
|
||||
@@ -31,6 +32,7 @@ class flomniGuiTools:
|
||||
self.gui.flomni.raise_window()
|
||||
else:
|
||||
self.gui.new("flomni")
|
||||
time.sleep(1)
|
||||
|
||||
def flomnigui_stop_gui(self):
|
||||
self.gui.flomni.hide()
|
||||
|
||||
Reference in New Issue
Block a user