GUI: logging in rastergridmanager for debugging
This commit is contained in:
@@ -12,6 +12,10 @@ from aaredaqlib.models import DAQStatusModel
|
||||
from aaredaqlib.raster_grid import RasterGridRequest, CompletedRasterGrid, CompletedRasterGridElem
|
||||
from aaredaqlib.sample_geometry import SampleGeometryModel
|
||||
|
||||
from aaredaqlib.logger_config import setup_logger
|
||||
|
||||
logger = setup_logger("aareGUI")
|
||||
|
||||
|
||||
class RasterGridMetric(Enum):
|
||||
BKG = 0
|
||||
@@ -456,6 +460,7 @@ class RasterGridManager(QObject):
|
||||
self.__active_grid.n_y = 0
|
||||
if last_raster is not None and last_raster.result.file_prefix is not None:
|
||||
com = last_raster.centre_of_mass
|
||||
logger.info(f"COM: {com}")
|
||||
if com:
|
||||
cell = com.max_image
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user