Skip to content

Backend interface

cutana_ui.utils.backend_interface

Interface to cutana backend module.

BackendInterface

Interface for communication with cutana backend.

check_source_catalogue(filepath) async staticmethod

Analyze source catalogue file and return summary information. Called by the start_screem

Returns:

Name Type Description
dict Dict

Contains 'num_sources', 'fits_files', 'extensions'

start_processing(config, status_panel=None) async staticmethod

Start the cutout processing with given configuration.

Parameters:

Name Type Description Default
config DotMap

Configuration DotMap

required
status_panel

Optional reference to UI status panel for direct updates

None

This calls the real cutana orchestrator pipeline with optional direct UI updates.

load_sources_for_previews(catalogue_path=None, config=None, progress_callback=None) async staticmethod

Load and cache sources for fast preview generation.

Delegates to cutana.preview_generator.load_sources_for_previews().

generate_previews(num_samples=10, size=256, config=None, progress_callback=None) async staticmethod

Generate preview cutouts using cached sources and FITS data.

Delegates to cutana.preview_generator.generate_previews().

regenerate_preview_seed() staticmethod

Generate a new preview seed for fresh sample selection.

Delegates to cutana.preview_generator.regenerate_preview_seed().

stop_processing() async staticmethod

Stop any active processing by terminating the orchestrator and its subprocesses.

Returns:

Type Description
Dict[str, Any]

Dictionary containing stop operation results

get_processing_status() async staticmethod

Get current processing status from the active orchestrator.

Returns:

Type Description
Dict[str, Any]

Dictionary containing processing status information optimized for UI display