ronswanson.grids module
- class ronswanson.grids.EnergyGrid(vmin: Union[float, NoneType] = None, vmax: Union[float, NoneType] = None, scale: Union[str, NoneType] = None, n_points: Union[int, NoneType] = None, values: Union[numpy.ndarray, NoneType] = None, custom: bool = False)[source]
Bases:
object
- vmin: Optional[float] = None
- vmax: Optional[float] = None
- scale: Optional[str] = None
- n_points: Optional[int] = None
- values: Optional[ndarray] = None
- custom: bool = False
- property grid: ndarray
- __init__(vmin: Optional[float] = None, vmax: Optional[float] = None, scale: Optional[str] = None, n_points: Optional[int] = None, values: Optional[ndarray] = None, custom: bool = False) None
- class ronswanson.grids.Parameter(name: str, vmin: Union[float, NoneType] = None, vmax: Union[float, NoneType] = None, scale: Union[str, NoneType] = None, n_points: Union[int, NoneType] = None, values: Union[numpy.ndarray, NoneType] = None, custom: bool = False)[source]
Bases:
object
- name: str
- vmin: Optional[float] = None
- vmax: Optional[float] = None
- scale: Optional[str] = None
- n_points: Optional[int] = None
- values: Optional[ndarray] = None
- custom: bool = False
- property grid: ndarray
- __init__(name: str, vmin: Optional[float] = None, vmax: Optional[float] = None, scale: Optional[str] = None, n_points: Optional[int] = None, values: Optional[ndarray] = None, custom: bool = False) None
- class ronswanson.grids.ParameterGrid(parameter_list: List[ronswanson.grids.Parameter], energy_grid: List[ronswanson.grids.EnergyGrid])[source]
Bases:
object
- energy_grid: List[EnergyGrid]
- full_grid: Optional[ndarray]
- property n_points: int
- property n_parameters: int
- classmethod from_dict(d: Dict[str, Dict[str, Any]]) ParameterGrid [source]
- classmethod from_yaml(file_name: str) ParameterGrid [source]
- property parameter_names: List[str]
- at_index(i: int, as_array: bool = False) Union[Dict[str, float], ndarray] [source]
return the ith set of parameters
- Parameters:
i (int) –
- Returns:
- __init__(parameter_list: List[Parameter], energy_grid: List[EnergyGrid]) None