logo and scilog newline fixed
CI for csaxs_bec / test (push) Successful in 1m56s

This commit is contained in:
x12sa
2026-03-23 17:00:28 +01:00
parent b37ae3ef57
commit 5d61d756c9
2 changed files with 18 additions and 3 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

@@ -969,8 +969,6 @@ class FlomniSampleTransferMixin:
class FlomniAlignmentMixin:
import csaxs_bec
import os
from pathlib import Path
# Ensure this is a Path object, not a string
csaxs_bec_basepath = Path(csaxs_bec.__file__)
@@ -2312,8 +2310,25 @@ class Flomni(
# ["BEC", "tomo_parameters", f"dataset_id_{dataset_id}", "flOMNI", self.sample_name]
# )
# self.client.tomo_progress.send_tomo_progress_message("~/data/raw/documentation/tomo_scan_ID_{self.tomo_id}.pdf").send()
import csaxs_bec
bec.messaging.scilog.new().add_text(content.replace("\n", "\r\n")).send()
# Ensure this is a Path object, not a string
csaxs_bec_basepath = Path(csaxs_bec.__file__)
logo_file_rel = "flOMNI.png"
# Build the absolute path correctly
logo_file = (
csaxs_bec_basepath.parent
/ "bec_ipython_client"
/ "plugins"
/ "flomni"
/ logo_file_rel
).resolve()
print(logo_file)
bec.messaging.scilog.new().add_attachment(logo_file).add_text(content.replace("\n", "<br>")).send()
# bec.messaging.scilog.new().add_text(content.replace("\n", "<br>")).send()
# bec.messaging.scilog.new().add_attachment()