You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code should first check if a title was given as metadata, otherwise use the default. Also, swap the scan_id and plan_name in the title, scan_id first.
The text was updated successfully, but these errors were encountered:
defget_sample_title(self):
""" Get the title from the metadata or modify the default. default title: S{scan_id}-{plan_name}-{short_uid} """try:
title=self.metadata["title"]
exceptKeyError:
# title = super().get_sample_title() # the default titletitle=f"S{self.scan_id:05d}-{self.plan_name}-{self.uid[:7]}"returntitle
apstools/apstools/callbacks/nexus_writer.py
Line 413 in 1351d03
This code should first check if a
title
was given as metadata, otherwise use the default. Also, swap the scan_id and plan_name in the title, scan_id first.The text was updated successfully, but these errors were encountered: