oasislmf.pytools.lec.aggreports.aggreports¶
Attributes¶
Classes¶
Shared per-run configuration passed to output helpers and output_for_summary_idx. |
|
Functions¶
|
Return a callable(data, out_type) that writes data in the correct output format. |
|
Output all report types for a single summary_id (idx path). |
Module Contents¶
- class oasislmf.pytools.lec.aggreports.aggreports.LecConfig[source]¶
Shared per-run configuration passed to output helpers and output_for_summary_idx.
- oasislmf.pytools.lec.aggreports.aggreports.make_output_fn(outmap, output_binary, output_parquet)[source]¶
Return a callable(data, out_type) that writes data in the correct output format.
- class oasislmf.pytools.lec.aggreports.aggreports.AggReports(outmap, outloss_mean, row_used_mean, outloss_sample, row_used_sample, config, lec_files_folder, output_binary, output_parquet)[source]¶
-
- output_mean_damage_ratio(eptype, eptype_tvar, outloss_type)[source]¶
Output Mean Damage Ratio Mean Damage Losses - This means do the loss calculation for a year using the event mean damage loss computed by numerical integration of the effective damageability distributions.
- output_full_uncertainty(eptype, eptype_tvar, outloss_type)[source]¶
Output Full Uncertainty Full Uncertainty – this means do the calculation across all samples (treating the samples effectively as repeat years) - this is the most accurate of all the single EP Curves.
- output_wheatsheaf_and_wheatsheafmean(eptype, eptype_tvar, outloss_type, output_wheatsheaf, output_wheatsheaf_mean)[source]¶
Output Wheatsheaf and Wheatsheaf Mean Wheatsheaf, Per Sample EPT (PSEPT) – this means calculate the EP Curve for each sample and leave it at the sample level of detail, resulting in multiple “curves”. Wheatsheaf Mean, Per Sample mean EPT – this means average the loss at each return period of the Per Sample EPT.
- oasislmf.pytools.lec.aggreports.aggreports.output_for_summary_idx(summary_id, outloss_mean_s, row_used_mean_s, outloss_sample_s, row_used_sample_s, output_flags, hasOCC, hasAGG, outmap, config, output_fn)[source]¶
Output all report types for a single summary_id (idx path).
Called once per summary_id. config.max_summary_id must be 1; arrays are sized for a single summary. Write generators emit SummaryId=1, corrected here before each write.