pyimcom.splitpsf.update_cube
Function to update cached files in a split-PSF iteration.
Attributes
Functions
|
Prints colored text. |
|
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