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!', warning_=True)

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

  • warning (bool) – If True return error and terminate all processes, eles show warning only.

Returns:

TARDIS Error log

Return type:

str

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

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

Parameters:

desc (str) – Description text.

Returns:

list of cut string

Return type:

list[str]