crostenes module

crostenes.create_algorithm(filter_name, cut_off=None, quantiles=None)

Factory to create algorithm according to parameters

Parameters:
  • cutoff (float or None) – keep all data where (I-center)/std < cutoff

  • quantiles (tuple(float, float) or None) – 2-tuple of floats average out data between the two quantiles

Returns:

An algorithm

Return type:

ImageReductionFilter

Raises:

AlgorithmCreationError – If it is not possible to create the algorithm

crostenes.mul(a, b)

Execute a script trying first to use execfile, then a subprocess

Parameters:
  • filename (str) – Script to execute

  • argv (list[str]) – Arguments passed to the filename

Return int:

Exit code of the script

Raises:

ValueError – If the script cannot be found

crostenes.read_input_from_file(file_path)

Reads input data from a file and returns a list of lines.

Parameters: - file_path (str): The path to the input file.

Returns: - input_lines (list): List of lines read from the input file.