vipr_api.web.routers.reflectorch package

Submodules

vipr_api.web.routers.reflectorch.config module

Reflectorch Configuration Router.

This router handles reflectorch-specific model configuration endpoints: - /models - List available models - /{model}/parameters - Get model parameters - /standard-config - Generate standard configuration

async vipr_api.web.routers.reflectorch.config.get_available_models() list[AvailableModel]

Get available models for reflectometry analysis.

Returns:

List of available models with their configurations

Return type:

List[AvailableModel]

Raises:

HTTPException – If the configuration directory is not found

async vipr_api.web.routers.reflectorch.config.get_parameters(model: str)

Get parameters for a specific reflectometry model.

Parameters:

model (str) – Name of the model

Returns:

Parameters for the model

Return type:

ReflectometryModelParameters

Raises:

HTTPException – If the model configuration is not found

async vipr_api.web.routers.reflectorch.config.get_standard_config() VIPRInference

Generate standard Reflectorch configuration.

This endpoint migrated from vipr-core to vipr-framework. It calls the VIPR runner to generate standard configuration.

Returns:

Dict containing standard VIPR configuration

Raises:

HTTPException – If config generation fails

Module contents

Reflectorch Router Module for VIPR Framework.

This package contains reflectorch-specific (domain-specific) API routers: - config.py: Model configuration endpoints

Generic inference endpoints (run, progress, cancel, health) have been moved to the inference router at /api/inference/* for domain-agnostic use.