def export_loss_curves(ekey, dstore): if '/' not in ekey[0]: # full loss curves are not exportable logging.error('Use the command oq export loss_curves/rlz-0 to export ' 'the first realization') return [] what = ekey[0].split('/', 1)[1] return loss_curves.LossCurveExporter(dstore).export('csv', what)
def export_loss_curves(ekey, dstore): if '/' in ekey[0]: kind = ekey[0].split('/', 1)[1] else: kind = ekey[0].split('-', 1)[1] # rlzs or stats return loss_curves.LossCurveExporter(dstore).export('csv', kind)
def export_loss_curves(ekey, dstore): if '/' not in ekey[0]: # full loss curves are not exportable return [] what = ekey[0].split('/', 1)[1] return loss_curves.LossCurveExporter(dstore).export('csv', what)