Skip to content

Commit

Permalink
Merge pull request #10057 from gem/DISPLAY_NAME
Browse files Browse the repository at this point in the history
Added missing DISPLAY_NAMEs
  • Loading branch information
micheles authored Oct 15, 2024
2 parents 51123ca + 43c99af commit bc0da75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions openquake/calculators/export/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
'asce07': 'ASCE 7 Parameters',
'asce41': 'ASCE 41 Parameters',
'mag_dst_eps_sig': "Deterministic Earthquake Scenarios",
'assetcol': 'Exposure',
'asset_risk': 'Exposure + Risk',
'gmf_data': 'Ground Motion Fields',
'damages-rlzs': 'Asset Risk Distributions',
Expand All @@ -49,6 +50,8 @@
'bcr-rlzs': 'Benefit Cost Ratios',
'bcr-stats': 'Benefit Cost Ratios Statistics',
'cs-stats': 'Mean Conditional Spectra',
'median_spectra': 'Median Spectra per Site and PoE',
'median_spectrum_disagg': 'Median Spectrum Disaggregation',
'reinsurance-avg_policy': 'Average Reinsurance By Policy',
'reinsurance-avg_portfolio': 'Average Reinsurance',
'reinsurance-risk_by_event': 'Reinsurance By Event',
Expand Down
4 changes: 2 additions & 2 deletions openquake/calculators/postproc/median_spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ def main(dstore, csm):
else:
log_median_spectra[grp_id, site_id] = out
tot_w[site_id] += out[2]
dstore.create_dset("log_median_spectra", log_median_spectra)
dstore.set_shape_descr("log_median_spectra", grp_id=Gr,
dstore.create_dset("median_spectra", log_median_spectra)
dstore.set_shape_descr("median_spectra", grp_id=Gr,
site_id=N, kind=['mea', 'sig', 'wei'],
period=periods, poe=oq.poes)
# sanity check on the weights
Expand Down

0 comments on commit bc0da75

Please sign in to comment.