![]() Site collection, possibly extracted from the exposure. Read the exposure (if any), the risk model (if any) and then the Of the calculation_mode, then read the risk data. Read the previous calculation datastore by checking the consistency Read risk data and sources if any read_previous ( precalc_id ) ¶ Read the exposure, the riskmodel and update the attributes precalc = None ¶ read_exposure ( haz_sitecol=None ) ¶ The previous calculation if not, read the inputs directly. If yes, read the inputs by invoking the precalculator or by retrieving post_process ( ) ¶įor compatibility with the engine pre_execute ( ) ¶Ĭheck if there is a pre_calculator or a previous calculation ID. Save the loss ratios (if any) in the datastore. The riskmodel can be empty for hazard calculations. Read the risk model and set the attribute. To be overridden to initialize the datasets needed by the calculation load_riskmodel ( ) ¶ result_dict – a dictionary with keys (grp_id, gsim).Or 0 if the src_group has been filtered away. Returns the number of ruptures in the src_group (after filtering) The parent datastore if it is present and can be read from theĬompute_previous ( ) ¶ count_eff_ruptures ( result_dict, src_group_id ) ¶ HazardCalculator ( oqparam, monitor=, calc_id=None ) ¶īases: īase class for hazard calculators based on source models can_read_parent ( ) ¶ Returns: Set the format of the root logger sitecol ¶ class. Update the current calculation parameters and save engine_version set_log_format ( ) ¶ Run the calculation and return the exported outputs. run ( pre_execute=True, concurrent_tasks=None, close=True, **kw ) ¶ pre_calculator = None ¶ pre_execute ( ) ¶ Post-processing phase of the aggregated output. from_engine = False ¶ is_stochastic = False ¶ monitor ( operation, **kw ) ¶ Returns: Individual outputs are not exported if there are multiple realizations. export ( exports=None ) ¶Įxport all the outputs in the datastore in the given export formats. Usually will run in parallel the coreįunction and return a dictionary with the results. Set the attributes nbytes core_task ( *args ) ¶Ĭore routine running on the workers. BaseCalculator ( oqparam, monitor=, calc_id=None ) ¶Ībstract base class for all calculators. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |