This commit is contained in:
@@ -1580,19 +1580,6 @@ class Flomni(
|
||||
def sample_name(self):
|
||||
return self.sample_get_name(0)
|
||||
|
||||
def write_to_scilog(self, content, tags: list = None):
|
||||
pass
|
||||
# try:
|
||||
# if tags is not None:
|
||||
# tags.append("BEC")
|
||||
# else:
|
||||
# tags = ["BEC"]
|
||||
# msg = bec.tomo_progress.tomo_progressMessage()
|
||||
# msg.add_text(content).add_tag(tags)
|
||||
# self.client.tomo_progress.send_tomo_progress_message(msg)
|
||||
# except Exception:
|
||||
# logger.warning("Failed to write to scilog.")
|
||||
|
||||
def tomo_alignment_scan(self):
|
||||
"""
|
||||
Performs a tomogram alignment scan.
|
||||
@@ -1607,9 +1594,6 @@ class Flomni(
|
||||
|
||||
self.feye_out()
|
||||
tags = ["BEC_alignment_tomo", self.sample_name]
|
||||
self.write_to_scilog(
|
||||
f"Starting alignment scan. First scan number: {bec.queue.next_scan_number}.", tags
|
||||
)
|
||||
|
||||
start_angle = 0
|
||||
alignment_scan_numbers = []
|
||||
@@ -1657,7 +1641,7 @@ class Flomni(
|
||||
f"Alignment scan numbers: {scan_list_str}\n"
|
||||
)
|
||||
print(scliog_content)
|
||||
bec.messaging.scilog.new().add_text(scilog_content.replace("\n", "<br>")).send()
|
||||
bec.messaging.scilog.new().add_text(scilog_content.replace("\n", "<br>")).add_tags("alignmentscan").send()
|
||||
|
||||
def sub_tomo_scan(self, subtomo_number, start_angle=None):
|
||||
"""
|
||||
@@ -2111,7 +2095,7 @@ class Flomni(
|
||||
f"{str(datetime.datetime.now())}: flomni scan projection at angle {angle}, scan"
|
||||
f" number {bec.queue.next_scan_number}.\n"
|
||||
)
|
||||
# self.write_to_scilog(log_message, ["BEC_scans", self.sample_name])
|
||||
|
||||
scans.flomni_fermat_scan(
|
||||
fovx=self.fovx,
|
||||
fovy=self.fovy,
|
||||
|
||||
Reference in New Issue
Block a user