From d3fadd53e5f4e7973812b5731f75e3a48d2d8e11 Mon Sep 17 00:00:00 2001 From: Paolo Tormene Date: Fri, 21 Apr 2023 15:07:10 +0200 Subject: [PATCH] Do list(tagdict) instead of sorted(tagdict) --- openquake/calculators/extract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openquake/calculators/extract.py b/openquake/calculators/extract.py index 5db2c760a802..465019ad52b3 100644 --- a/openquake/calculators/extract.py +++ b/openquake/calculators/extract.py @@ -736,7 +736,7 @@ def extract_agg_curves(dstore, what): k = qdic['k'] # rlz or stat index lts = tagdict.pop('lt') # loss type string [l] = qdic['loss_type'] # loss type index - tagnames = sorted(tagdict) + tagnames = list(tagdict) if set(tagnames) != info['tagnames']: raise ValueError('Expected tagnames=%s, got %s' % (info['tagnames'], tagnames))