|
7 | 7 |
|
8 | 8 |
|
9 | 9 | class DayPipelineOptions: |
10 | | - def __init__(self, model_options: Dict[str, Any], mask_filepath: str, cloud_map: CloudMapGeneratorOptions, coverage_info: CloudInfoCalculatorOptions) -> None: |
| 10 | + def __init__(self, model_options: Dict[str, Any], mask_filepath: str, sun_apparent_size: float, cloud_map: CloudMapGeneratorOptions, coverage_info: CloudInfoCalculatorOptions) -> None: |
11 | 11 | self.model_options = model_options |
12 | 12 | self.coverage_info = coverage_info |
13 | 13 | self.cloud_map = cloud_map |
14 | 14 | self.mask_filepath = mask_filepath |
| 15 | + self.sun_apparent_size = sun_apparent_size |
15 | 16 |
|
16 | 17 | @classmethod |
17 | 18 | def from_dict(cls, options: Dict[str, Dict[str, Any]]) -> DayPipelineOptions: |
18 | 19 | model_options = options.get("world_model", {}) |
19 | 20 | mask_filepath = cast(str, options.get('mask_filepath')) |
| 21 | + sun_apparent_size = float(cast(float, options.get('sun_apparent_size'))) |
20 | 22 | cloud_map = CloudMapGeneratorOptions.from_dict(cast(Dict[str, Any], options.get('cloud_map'))) |
21 | 23 | coverage_info = CloudInfoCalculatorOptions.from_dict(cast(Dict[str, Any], options.get('coverage_info'))) |
22 | 24 |
|
23 | | - return DayPipelineOptions(model_options, mask_filepath, cloud_map, coverage_info) |
| 25 | + return DayPipelineOptions(model_options, mask_filepath, sun_apparent_size, cloud_map, coverage_info) |
0 commit comments