Global -> Logger Handlers

TARDIS errors

tardis_em.utils.errors.standard_error_id(id_: str)

Helper function to read MRC header.

Parameters:

id (str) – Tardis error id.

exception tardis_em.utils.errors.TardisError(id_='0', py='NA', desc='Unknown exertion occurred!')

MAIN ERROR HANDLER

Parameters:
  • id (str) – Standardized error code. See more in documentation

  • py (str) – .py file location

  • desc (str) – Error description to pass to the shell

Returns:

TARDIS Error log

Return type:

str

cut_desc(desc: str) Tuple[str, str, str, str, str, str, str, str]

Cut string of text if too long to fit shell window.

Parameters:

desc (str) – Description text.

Returns:

list of cut string

Return type:

list[str]