data#
Data layer wrapping PipelineStore for the dashboard.
DashboardStore is a param.Parameterized adapter that
queries the SQLite database and exposes results as pandas DataFrames
suitable for Panel reactive updates.
Classes#
Reactive wrapper around |
Module Contents#
- class physicsnemo_curator.dashboard.data.DashboardStore(db_path: str, **kwargs: Any)#
Bases:
param.ParameterizedReactive wrapper around
PipelineStore.Provides pandas DataFrame views of pipeline metrics. Triggers a cache invalidation when the
refreshevent fires, causing the next property access to re-query the database.Initialize the dashboard store.
- Parameters:
db_path (str) – Path to an existing PipelineStore SQLite database.
**kwargs (Any) – Additional param keyword arguments.
- all_artifacts() dict[str, list[str]]#
Return all filter artifacts across all indices, resolved to absolute paths.
- artifacts(index: int) dict[str, list[str]]#
Return filter artifacts for a given index, resolved to absolute paths.
- logs_df(limit: int = 500, min_level: int = 0) pandas.DataFrame#
DataFrame of log entries from the pipeline run.
- property index_df: pandas.DataFrame#
DataFrame of per-index results.
Columns:
index,status,wall_time_s,peak_memory_mb,gpu_memory_mb,error.- Returns:
One row per processed index.
- Return type:
pd.DataFrame
- property pipeline_config: dict#
Return the pipeline configuration dictionary.
- Returns:
Pipeline configuration as stored in the database.
- Return type:
- refresh#
- selected_index#
- property stage_df: pandas.DataFrame#
DataFrame of per-stage timing for all indices.
Columns:
index,stage_name,stage_order,wall_time_s.- Returns:
One row per (index, stage) combination.
- Return type:
pd.DataFrame
- property workers_df: pandas.DataFrame#
DataFrame of registered workers.
Columns:
worker_id,pid,hostname,started_at,last_heartbeat,current_index.- Returns:
One row per worker.
- Return type:
pd.DataFrame