Replace uuid().hex with just uuid()

This commit is contained in:
Joel Collins 2019-12-28 18:36:46 +00:00
parent 059360ac76
commit 2b90829020
6 changed files with 8 additions and 8 deletions

View file

@ -134,7 +134,7 @@ class ScanPlugin(MicroscopePlugin):
basename = generate_basename()
# Generate a stack ID
scan_id = uuid.uuid4().hex
scan_id = uuid.uuid4()
# Store initial position
initial_position = self.microscope.stage.position
@ -288,7 +288,7 @@ class ScanPlugin(MicroscopePlugin):
# Generate a stack ID
if not scan_id:
scan_id = uuid.uuid4().hex
scan_id = uuid.uuid4()
# Add scan metadata
if not "time" in metadata:

View file

@ -123,7 +123,7 @@ class ZipBuilderPlugin(MicroscopePlugin):
# Update task progress
update_task_progress(int((index / n_files) * 100))
session_id = uuid.uuid4().hex
session_id = uuid.uuid4()
# self.session_zips[session_id] = fp
self.session_zips[session_id] = {
"id": session_id,

View file

@ -146,7 +146,7 @@ def tile(
basename = generate_basename()
# Generate a stack ID
scan_id = uuid.uuid4().hex
scan_id = uuid.uuid4()
# Store initial position
initial_position = microscope.stage.position
@ -296,7 +296,7 @@ def stack(
# Generate a stack ID
if not scan_id:
scan_id = uuid.uuid4().hex
scan_id = uuid.uuid4()
# Add scan metadata
if not "time" in metadata: