csaxs_bec.bec_ipython_client.plugins.omny.omny_general_tools.TomoIDManager#

class TomoIDManager[source]#

Bases: object

Registers a tomography measurement in the OMNY sample database and returns its assigned tomo ID.

Usage:

id_manager = TomoIDManager() tomo_id = id_manager.register(

sample_name=”my_sample”, date=”2024-03-08”, eaccount=”e12345”, scan_number=1001, setup=”lamni”, additional_info=”test info”, user=”BEC”,

)

Methods

register

Register a new measurement and return the assigned tomo ID.

Attributes

OMNY_PASSWORD

OMNY_URL

OMNY_USER

TMP_FILE

register(sample_name: str, date: str, eaccount: str, scan_number: int, setup: str, additional_info: str, user: str) int[source]#

Register a new measurement and return the assigned tomo ID.

Parameters:
  • sample_name (str) – Name of the sample.

  • date (str) – Date string (e.g. “2024-03-08”).

  • eaccount (str) – E-account identifier.

  • scan_number (int) – First scan number of the measurement.

  • setup (str) – Setup name (e.g. “lamni”).

  • additional_info (str) – Any additional sample information.

  • user (str) – User name.

Returns:

The tomo ID assigned by the OMNY database.

Return type:

int