jesterTOV.inference.flows.train_flow.load_posterior#
- load_posterior(filepath, parameter_names, max_samples=20000)[source]#
Load posterior samples from npz file with flexible parameter selection.
- Parameters:
- Return type:
- Returns:
data – Array of shape (n_samples, n_params) with selected parameters metadata: Dictionary with loading information
- Raises:
FileNotFoundError – If file doesn’t exist
KeyError – If required parameter names are missing from file