qualpipe_webapp.backend.backends.file_backend.FileBackend#

class qualpipe_webapp.backend.backends.file_backend.FileBackend(data_dir)[source]#

Bases: BackendAPI

Backend for reading data directly from HDF5 files.

Assumes directory structure: /prefix/site/date/files

Parameters:

data_dir (str)

fetch_data(obsid, tel_id, site, date, keys=None)[source]#

Fetch data for specific observation and telescope by extracting from HDF5 on-the-fly.

Args:

obsid: Observation ID tel_id: Telescope ID site: Site name (β€œNorth” or β€œSouth”) date: Date string in YYYY-MM-DD format keys: Optional list of data keys to fetch

Parameters:
Return type:

dict[str, DataItem]

get_available_metrics(obsid, tel_id, site, date)[source]#

Return list of available data quality metrics for a specific observation and telescope.

Parameters:
Return type:

list[str]

get_ob_date_map()[source]#

Generate observation date mapping.

Return type:

dict[str, list[int]]

scan_observations()[source]#

Scan both sites for available HDF5 files using prefix/site/date/files structure.

Return type:

list[ObservationInfo]