module documentation

Undocumented

Function exec_with_args Undocumented
Function get_source_regions Return regions, bounding boxes, and parameters used to find emitting regions in data
Function go Thin wrapper around run() to accept string inputs. As long as the names of the arguments to this function are the same as the names expected from the command line we can do this programatically
Function labels_and_props_relabel Undocumented
Function labels_keep Undocumented
Function labels_relabel Undocumented
Function parse_args Undocumented
Function plot_source_regions Undocumented
Function props_keep Undocumented
Function props_relabel Undocumented
Function run Undocumented
Function select_labels_from_props Undocumented
Variable _lgr Undocumented
def exec_with_args(argv):

Undocumented

def get_source_regions(data: np.ndarray, name: str = '', signal_noise_ratio: float = 5, smallest_obj_area_px: int = 5, bbox_inflation_factor: float = 1.1, bbox_inflation_px: int = 30, morphology_opening: int = 3):

Return regions, bounding boxes, and parameters used to find emitting regions in data

def go(fits_spec, output_path_format=None, n_sources=None, signal_noise_ratio=None, smallest_obj_area_px=None, bbox_inflation_factor=None, bbox_inflation_px=None, morphology_opening=None, plot_FLAG=None, help_FLAG=None):

Thin wrapper around run() to accept string inputs. As long as the names of the arguments to this function are the same as the names expected from the command line we can do this programatically

def labels_and_props_relabel(labels, props, old_labels, new_labels):

Undocumented

def labels_keep(labels, labels_to_keep, background=0):

Undocumented

def labels_relabel(labels, old_labels, new_labels):

Undocumented

def parse_args(argv):

Undocumented

def plot_source_regions(data: np.ndarray, labels, bboxes: tuple[BoundingBox, ...], params: dict[str, Any], fig=None, ax=None, fig_kwargs=None):

Undocumented

def props_keep(props, labels_to_keep):

Undocumented

def props_relabel(props, old_labels, new_labels):

Undocumented

def run(fits_spec: aph.fits.specifier.FitsSpecifier, output_path_format: FPath, n_sources, signal_noise_ratio: float = 5, smallest_obj_area_px: int = 5, bbox_inflation_factor: float = 1.1, bbox_inflation_px: int = 30, morphology_opening: int = 3, plot: bool = False):

Undocumented

def select_labels_from_props(props, predicate=lambda prop: True):

Undocumented

_lgr =

Undocumented