Let camera object handle its own library rebuild
This commit is contained in:
parent
d39f897531
commit
0595d3c620
2 changed files with 5 additions and 5 deletions
|
|
@ -1,5 +1,4 @@
|
|||
from openflexure_microscope import Microscope
|
||||
from openflexure_microscope.camera.capture import build_captures_from_exif
|
||||
|
||||
import logging
|
||||
|
||||
|
|
@ -8,8 +7,6 @@ default_microscope = Microscope()
|
|||
|
||||
# Restore loaded capture array to camera object
|
||||
logging.debug("Restoring captures...")
|
||||
default_microscope.camera.images = build_captures_from_exif(
|
||||
default_microscope.camera.paths["default"]
|
||||
)
|
||||
default_microscope.camera.rebuild_captures()
|
||||
|
||||
logging.debug("Microscope successfully attached!")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue