pyimcom.splitpsf.update_cube

Function to update cached files in a split-PSF iteration.

Functions

_colored(text, fg, bg)

Prints colored text.

update(cfg_file[, proceed])

Main function to update the data cubes to the next iteration.

Module Contents

_colored(text, fg, bg)[source]

Prints colored text.

Format follows ANSI: 0=black, 1=red, 2=green, 3=yellow, 4=blue, 5=magenta, 6=cyan, 7=white, 9=default.

Parameters:
  • text (str) – The text to print.

  • fg (int) – Foreground color.

  • bg (int) – Background color.

Returns:

Formatted string with ANSI codes.

Return type:

str

update(cfg_file, proceed=True)[source]

Main function to update the data cubes to the next iteration.

Parameters:
  • cfg_file (str or str-like) – The configuration file.

  • proceed (bool, optional) – Whether to actually move the files (only turn off for testing).

Return type:

None