Skip to content

Commit

Permalink
Merge pull request #123 from ufo-kit/ez-dev
Browse files Browse the repository at this point in the history
Closed  #122: Added qtimer to make sure that EditingFinished signals go through bef…
  • Loading branch information
tfarago committed Jul 21, 2022
2 parents a301b9c + 1e11954 commit fdae823
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions tofu/ez/GUI/Main/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import os
import logging
from functools import partial

import numpy as np
from shutil import rmtree

Expand All @@ -13,7 +15,7 @@
QGroupBox,
QLineEdit,
)
from PyQt5.QtCore import QCoreApplication
from PyQt5.QtCore import QCoreApplication, QTimer
from PyQt5.QtCore import pyqtSignal
from PyQt5.QtCore import Qt
from tofu.ez.main import execute_reconstruction, clean_tmp_dirs
Expand Down Expand Up @@ -603,8 +605,20 @@ def reco_button_pressed(self):
These are then passed to execute_reconstruction
"""
LOG.debug("RECO")
self.set_fdt_names()
self.set_common_darks()
self.set_common_flats()
self.set_common_flats2()
self.set_big_tiff()
self.set_input_dir()
self.set_output_dir()
self.set_temp_dir()
self.set_preproc()
self.set_preproc_entry()
LOG.debug(parameters.params)
self.run_reconstruction(parameters.params, batch_run=False)
run_reco = partial(self.run_reconstruction, parameters.params, batch_run=False)
QTimer.singleShot(100, run_reco)
#self.run_reconstruction(parameters.params, batch_run=False)

def run_reconstruction(self, params, batch_run):
try:
Expand Down

0 comments on commit fdae823

Please sign in to comment.