Skip to content

Commit

Permalink
Merge pull request #574 from mprib/564-capture-volume-widget-referenc…
Browse files Browse the repository at this point in the history
…es-appear-to-get-out-of-sync-after-reloading-the-workspace

Reduce cluttered logging
  • Loading branch information
mprib authored Dec 7, 2023
2 parents cf5eec9 + f2553e3 commit d5f87ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 5 additions & 3 deletions pyxy3d/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from enum import Enum, auto
from pathlib import Path
from PySide6.QtGui import QPixmap
from time import sleep
from time import sleep, time
from pyxy3d.interface import Tracker
from pyxy3d.trackers.tracker_enum import TrackerEnum
from pyxy3d.post_processing.post_processor import PostProcessor
Expand Down Expand Up @@ -305,8 +305,10 @@ def worker():
logger.info(f"Processing of extrinsic calibration begun...waiting for output to populate: {output_path}")

while not output_path.exists():
sleep(0.5)
logger.info( f"Waiting for 2D tracked points to populate at {output_path}")
sleep(.5)
# moderate the frequency with which logging statements get made
if round(time())%3==0:
logger.info( f"Waiting for 2D tracked points to populate at {output_path}")

# note that this processing will wait until it is complete
self.process_extrinsic_streams(fps_target=100)
Expand Down
5 changes: 0 additions & 5 deletions tests/test_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ def test_extrinsic_calibration():

assert(not controller.camera_array.all_extrinsics_calibrated())

# xy_path = Path(workspace,"calibration", "extrinsic", "CHARUCO", "xy_CHARUCO.csv")
# while not xy_path.exists():
# sleep(1)
# logger.info(f"Waiting on data to populate in {xy_path}")

# with the charuco points tracked and saved out, the calibration can now proceed
controller.estimate_extrinsics()

Expand Down

0 comments on commit d5f87ef

Please sign in to comment.