Global -> Helper Handlers
- tardis_em.tardis_helper.helper_func.tardis_helper(func: str, dir_s=None, px: float | None = None)
This function assists in the format-specific processing and conversion of files within a specified directory. It determines the required operations based on the function name format, identifying the file type and output format. The function handles both coordinate data and image files, ensuring that requisite conversions are performed successfully.
- Parameters:
func (str) – A string specifying the operation and file type format, structured as ‘inputFileType_outputFileType’. This determines both the expected input file format and the desired output file format (e.g., ‘csv_am’, ‘mrc_tiff’).
dir_s (Optional[str]) – The directory path containing files to process. If None, the function will not operate on any files.
px (Optional[float]) – A float representing the pixel size, which is necessary for certain operations involving image files. Can be optionally passed or initially set to None.
- Returns:
None. The processed files are saved directly in the specified directory with the converted output format.
- Return type:
None