Temp capture folder now handled by camera

This commit is contained in:
Joel Collins 2019-04-11 07:13:32 +01:00
parent a1965f606c
commit 7cf54240be
3 changed files with 21 additions and 39 deletions

View file

@ -62,14 +62,14 @@ class ScanPlugin(MicroscopePlugin):
# Construct a tile filename
filename = "{}_{}_{}_{}".format(basename, *self.microscope.stage.position)
foldername = "SCAN_{}".format(basename)
folder = "SCAN_{}".format(basename)
# Create output object
output = self.microscope.camera.new_image(
write_to_file=True,
temporary=temporary,
filename=filename,
folder=foldername)
folder=folder)
# Capture
self.microscope.camera.capture(