Analysis Registry¶
analysis_registry ¶
Analysis Registry - Configuration Management.
Provides registry for loading and managing analysis configurations. Each analysis (Use Case) has a JSON configuration defining its parameters, filters, and visualization settings.
Classes:
| Name | Description |
|---|---|
AnalysisRegistry | Registry for analysis configurations with JSON support |
Classes¶
AnalysisRegistry ¶
Registry for analysis configurations.
Loads analysis definitions from JSON files and provides access to analysis metadata, parameters, and settings.
Attributes:
| Name | Type | Description |
|---|---|---|
analyses_dir | Path | Directory containing analysis JSON files |
_analyses | Dict[str, Dict[str, Any]] | Loaded analysis configurations |
Methods:
| Name | Description |
|---|---|
get_analysis | Get analysis configuration by ID |
get_all_analyses | Get all registered analyses |
get_analyses_by_use_case | Get all analyses for a specific Use Case |
get_analysis_ids | Get list of all analysis IDs |
get_use_cases | Get list of unique Use Cases |
analysis_exists | Check if analysis exists |
get_analysis_plot_type | Get plot type for analysis |
reload | Reload all analysis configurations |
get_stats | Get registry statistics |
Initialize analysis registry.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
analyses_dir | Optional[Path] | Directory containing analysis JSON files. Defaults to 'config/analyses/'. | None |
Source code in src/infrastructure/config/analysis_registry.py
Functions¶
get_analysis ¶
Get analysis configuration by ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
analysis_id | str | Analysis identifier (e.g., 'UC1_1') | required |
Returns:
| Type | Description |
|---|---|
Optional[Dict[str, Any]] | Analysis configuration or None if not found |
Source code in src/infrastructure/config/analysis_registry.py
get_all_analyses ¶
Get all registered analyses.
Returns:
| Type | Description |
|---|---|
Dict[str, Dict[str, Any]] | Dictionary mapping analysis IDs to configurations. |
Source code in src/infrastructure/config/analysis_registry.py
get_analyses_by_use_case ¶
Get all analyses for a specific Use Case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
use_case | str | Use Case identifier (e.g., 'UC1') | required |
Returns:
| Type | Description |
|---|---|
List[Dict[str, Any]] | List of analysis configurations |
Source code in src/infrastructure/config/analysis_registry.py
get_analysis_ids ¶
Get list of all analysis IDs.
Returns:
| Type | Description |
|---|---|
List[str] | List of analysis identifiers. |
get_use_cases ¶
Get list of unique Use Cases.
Returns:
| Type | Description |
|---|---|
List[str] | List of Use Case identifiers |
Source code in src/infrastructure/config/analysis_registry.py
analysis_exists ¶
Check if analysis exists.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
analysis_id | str | Analysis identifier. | required |
Returns:
| Type | Description |
|---|---|
bool | True if analysis is registered. |
Source code in src/infrastructure/config/analysis_registry.py
get_analysis_plot_type ¶
Get plot type for analysis.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
analysis_id | str | Analysis identifier | required |
Returns:
| Type | Description |
|---|---|
Optional[str] | Plot type (e.g., 'heatmap', 'bar_chart') or None |
Source code in src/infrastructure/config/analysis_registry.py
reload ¶
Reload all analysis configurations from files.
get_stats ¶
Get registry statistics.
Returns:
| Type | Description |
|---|---|
Dict[str, Any] | Statistics including total analyses, use cases, etc. |