From 0e4870e7df4f0669876c2e5f528c4506ffb765a0 Mon Sep 17 00:00:00 2001 From: Michele Simionato Date: Mon, 21 Oct 2024 07:37:40 +0200 Subject: [PATCH 1/6] Investing weights in median spectrum --- openquake/calculators/postproc/median_spectrum.py | 5 ++++- openquake/commands/plot.py | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/openquake/calculators/postproc/median_spectrum.py b/openquake/calculators/postproc/median_spectrum.py index 6befb7849a4b..c877a920fca8 100644 --- a/openquake/calculators/postproc/median_spectrum.py +++ b/openquake/calculators/postproc/median_spectrum.py @@ -198,7 +198,10 @@ def main(dstore, csm): site_id=N, kind=['mea', 'sig', 'wei'], period=periods, poe=oq.poes) # sanity check on the weights - # np.testing.assert_allclose(tot_w, 1, rtol=.01) + for p, poe in enumerate(oq.poes): + if (np.abs(tot_w[:, :, p] - 1) > .01).any(): + raise ValueError('The weights do not sum up to 1: perhaps the ' + f'hazard curve is not invertible around {poe=}') # sanity check on the rup_ids if N == 1 and P == 1: diff --git a/openquake/commands/plot.py b/openquake/commands/plot.py index f618217f3ef0..5333d9964919 100644 --- a/openquake/commands/plot.py +++ b/openquake/commands/plot.py @@ -83,6 +83,8 @@ def make_figure_hcurves(extractors, what): if (arr == 0).all(): logging.warning('There is a zero curve %s_%s', *ck) ax.loglog(imls, arr.flat, '-', label='%s_%s' % ck) + for poe in oq.poes: + ax.plot(imls, [poe]*len(imls), label=f'{poe=}') ax.grid(True) ax.legend() return plt From 83aead362a25b94395ad14a730ecca3c61ba46bd Mon Sep 17 00:00:00 2001 From: Michele Simionato Date: Mon, 21 Oct 2024 07:44:32 +0200 Subject: [PATCH 2/6] Improved message --- openquake/calculators/postproc/median_spectrum.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openquake/calculators/postproc/median_spectrum.py b/openquake/calculators/postproc/median_spectrum.py index c877a920fca8..0f0c9d500fa8 100644 --- a/openquake/calculators/postproc/median_spectrum.py +++ b/openquake/calculators/postproc/median_spectrum.py @@ -199,8 +199,9 @@ def main(dstore, csm): period=periods, poe=oq.poes) # sanity check on the weights for p, poe in enumerate(oq.poes): - if (np.abs(tot_w[:, :, p] - 1) > .01).any(): - raise ValueError('The weights do not sum up to 1: perhaps the ' + if (np.abs(tot_w[:, :, p] - 1) > .2).any(): + maxw = tot_w[:, :, p].max() + raise ValueError(f'The weights sum up to {maxw} != 1: perhaps the ' f'hazard curve is not invertible around {poe=}') # sanity check on the rup_ids From a7d73b72decf7566d7c7cc6edf8e3840582526d0 Mon Sep 17 00:00:00 2001 From: Michele Simionato Date: Mon, 21 Oct 2024 07:46:44 +0200 Subject: [PATCH 3/6] Improved formatting [ci skip] --- openquake/calculators/postproc/median_spectrum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openquake/calculators/postproc/median_spectrum.py b/openquake/calculators/postproc/median_spectrum.py index 0f0c9d500fa8..d4149640c6af 100644 --- a/openquake/calculators/postproc/median_spectrum.py +++ b/openquake/calculators/postproc/median_spectrum.py @@ -201,7 +201,7 @@ def main(dstore, csm): for p, poe in enumerate(oq.poes): if (np.abs(tot_w[:, :, p] - 1) > .2).any(): maxw = tot_w[:, :, p].max() - raise ValueError(f'The weights sum up to {maxw} != 1: perhaps the ' + raise ValueError(f'The weights sum up to {maxw:.3f} != 1: perhaps the ' f'hazard curve is not invertible around {poe=}') # sanity check on the rup_ids From 09495dbe2e5044660cd4450363858655810e717e Mon Sep 17 00:00:00 2001 From: Michele Simionato Date: Mon, 21 Oct 2024 09:51:46 +0200 Subject: [PATCH 4/6] Better logging [ci skip] --- openquake/calculators/postproc/median_spectrum.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openquake/calculators/postproc/median_spectrum.py b/openquake/calculators/postproc/median_spectrum.py index d4149640c6af..c3ce6a192756 100644 --- a/openquake/calculators/postproc/median_spectrum.py +++ b/openquake/calculators/postproc/median_spectrum.py @@ -199,8 +199,9 @@ def main(dstore, csm): period=periods, poe=oq.poes) # sanity check on the weights for p, poe in enumerate(oq.poes): - if (np.abs(tot_w[:, :, p] - 1) > .2).any(): - maxw = tot_w[:, :, p].max() + maxw = tot_w[:, :, p].max() + logging.info(f'{poe=} {maxw=}') + if (np.abs(tot_w[:, :, p] - 1) > .01).any(): raise ValueError(f'The weights sum up to {maxw:.3f} != 1: perhaps the ' f'hazard curve is not invertible around {poe=}') From 39fc0d3f47e1ede00e2eda5a401ff1863ee05152 Mon Sep 17 00:00:00 2001 From: Marco Pagani Date: Mon, 21 Oct 2024 14:27:13 +0200 Subject: [PATCH 5/6] Fixing test and adding linspace option --- openquake/hazardlib/valid.py | 33 +- .../expected/median_spectra-0-0.csv | 362 +++++++++--------- .../expected/median_spectra-0-1.csv | 362 +++++++++--------- .../expected/median_spectra-1-0.csv | 362 +++++++++--------- .../expected/median_spectra-1-1.csv | 362 +++++++++--------- .../expected/median_spectrum-0-0.csv | 26 +- .../expected/median_spectrum-0-1.csv | 26 +- .../expected/median_spectrum-1-0.csv | 26 +- .../expected/median_spectrum-1-1.csv | 26 +- .../postproc/case_median_spectrum/job2.ini | 24 +- 10 files changed, 820 insertions(+), 789 deletions(-) diff --git a/openquake/hazardlib/valid.py b/openquake/hazardlib/valid.py index a70dd945b47d..0de6eea1e7be 100644 --- a/openquake/hazardlib/valid.py +++ b/openquake/hazardlib/valid.py @@ -929,6 +929,23 @@ def logscale(x_min, x_max, n): return numpy.exp(delta * numpy.arange(n) / (n - 1)) * x_min +def linscale(x_min, x_max, n): + """ + :param x_min: minumum value + :param x_max: maximum value + :param n: number of steps + :returns: an array of n values from x_min to x_max + """ + if not (isinstance(n, int) and n > 0): + raise ValueError('n must be a positive integer, got %s' % n) + if x_min <= 0: + raise ValueError('x_min must be positive, got %s' % x_min) + if x_max <= x_min: + raise ValueError('x_max (%s) must be bigger than x_min (%s)' % + (x_max, x_min)) + return numpy.linspace(x_min, x_max, num=n) + + def dictionary(value): """ :param value: @@ -951,11 +968,17 @@ def dictionary(value): """ if not value: return {} - value = value.replace('logscale(', '("logscale", ') # dirty but quick + + if 'logscale' in value: + value = value.replace('logscale(', '("logscale", ') # dirty but quick + if 'linscale' in value: + value = value.replace('linscale(', '("linscale", ') # dirty but quick + try: dic = dict(ast.literal_eval(value)) except Exception: raise ValueError('%r is not a valid Python dictionary' % value) + for key, val in dic.items(): try: has_logscale = (val[0] == 'logscale') @@ -963,6 +986,14 @@ def dictionary(value): continue if has_logscale: dic[key] = list(logscale(*val[1:])) + + try: + has_linscale = (val[0] == 'linscale') + except Exception: # no val[0] + continue + if has_linscale: + dic[key] = list(linscale(*val[1:])) + return dic diff --git a/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectra-0-0.csv b/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectra-0-0.csv index ac084c954692..f6da4053838f 100644 --- a/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectra-0-0.csv +++ b/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectra-0-0.csv @@ -1,182 +1,182 @@ -#,,,"generated_by='OpenQuake engine 3.22.0-git790b48a5bd', start_date='2024-10-11T09:38:42', checksum=3680515047, site_id=0, lon=0.0, lat=0.0, poe=0.002105" +#,,,"generated_by='OpenQuake engine 3.22.0-gita7d73b72de', start_date='2024-10-21T14:14:53', checksum=3418894507, site_id=0, lon=0.0, lat=0.0, poe=0.002105" grp_id,kind,period,value -0,mea,0.00000E+00,-7.68772E-01 -0,sig,0.00000E+00,3.54017E-01 -0,wei,0.00000E+00,5.71130E-01 -0,mea,1.00000E-01,-3.34424E-01 -0,sig,1.00000E-01,3.58708E-01 -0,wei,1.00000E-01,5.39438E-01 -0,mea,2.00000E-01,-2.97253E-01 -0,sig,2.00000E-01,3.87644E-01 -0,wei,2.00000E-01,5.79132E-01 -0,mea,3.00000E-01,-3.71859E-01 -0,sig,3.00000E-01,4.13791E-01 -0,wei,3.00000E-01,6.12627E-01 -0,mea,4.00000E-01,-5.03251E-01 -0,sig,4.00000E-01,4.20985E-01 -0,wei,4.00000E-01,6.15092E-01 -0,mea,5.00000E-01,-6.11172E-01 -0,sig,5.00000E-01,4.28214E-01 -0,wei,5.00000E-01,6.17134E-01 -0,mea,7.50000E-01,-8.39281E-01 -0,sig,7.50000E-01,4.50150E-01 -0,wei,7.50000E-01,6.30536E-01 -0,mea,1.00000E+00,-1.06690E+00 -0,sig,1.00000E+00,4.57241E-01 -0,wei,1.00000E+00,6.37208E-01 -0,mea,1.20000E+00,-1.24511E+00 -0,sig,1.20000E+00,4.55941E-01 -0,wei,1.20000E+00,6.36259E-01 -0,mea,1.50000E+00,-1.47512E+00 -0,sig,1.50000E+00,4.59140E-01 -0,wei,1.50000E+00,6.40973E-01 -0,mea,1.75000E+00,-1.63595E+00 -0,sig,1.75000E+00,4.61418E-01 -0,wei,1.75000E+00,6.46786E-01 -0,mea,2.00000E+00,-1.77285E+00 -0,sig,2.00000E+00,4.62390E-01 -0,wei,2.00000E+00,6.50129E-01 -1,mea,0.00000E+00,-1.32232E-01 -1,sig,0.00000E+00,5.61984E-02 -1,wei,0.00000E+00,8.69212E-02 -1,mea,1.00000E-01,-6.69036E-02 -1,sig,1.00000E-01,5.89959E-02 -1,wei,1.00000E-01,8.54499E-02 -1,mea,2.00000E-01,-6.08157E-02 -1,sig,2.00000E-01,5.89979E-02 -1,wei,2.00000E-01,8.41863E-02 -1,mea,3.00000E-01,-7.08877E-02 -1,sig,3.00000E-01,6.39689E-02 -1,wei,3.00000E-01,9.15463E-02 -1,mea,4.00000E-01,-8.86875E-02 -1,sig,4.00000E-01,6.09851E-02 -1,wei,4.00000E-01,8.58907E-02 -1,mea,5.00000E-01,-1.01241E-01 -1,sig,5.00000E-01,5.91525E-02 -1,wei,5.00000E-01,8.23766E-02 -1,mea,7.50000E-01,-1.24319E-01 -1,sig,7.50000E-01,5.78817E-02 -1,wei,7.50000E-01,7.91117E-02 -1,mea,1.00000E+00,-1.40429E-01 -1,sig,1.00000E+00,5.21498E-02 -1,wei,1.00000E+00,7.12599E-02 -1,mea,1.20000E+00,-1.47678E-01 -1,sig,1.20000E+00,4.63154E-02 -1,wei,1.20000E+00,6.34818E-02 -1,mea,1.50000E+00,-1.53751E-01 -1,sig,1.50000E+00,4.05005E-02 -1,wei,1.50000E+00,5.56954E-02 -1,mea,1.75000E+00,-1.55329E-01 -1,sig,1.75000E+00,3.67174E-02 -1,wei,1.75000E+00,5.08420E-02 -1,mea,2.00000E+00,-1.54751E-01 -1,sig,2.00000E+00,3.35582E-02 -1,wei,2.00000E+00,4.67400E-02 -2,mea,0.00000E+00,-1.94751E-01 -2,sig,0.00000E+00,1.26823E-01 -2,wei,0.00000E+00,1.95587E-01 -2,mea,1.00000E-01,-5.28618E-02 -2,sig,1.00000E-01,1.18074E-01 -2,wei,1.00000E-01,1.74647E-01 -2,mea,2.00000E-01,-2.75311E-02 -2,sig,2.00000E-01,1.27108E-01 -2,wei,2.00000E-01,1.83650E-01 -2,mea,3.00000E-01,-5.03733E-02 -2,sig,3.00000E-01,1.22508E-01 -2,wei,3.00000E-01,1.76017E-01 -2,mea,4.00000E-01,-8.12104E-02 -2,sig,4.00000E-01,1.17465E-01 -2,wei,4.00000E-01,1.67403E-01 -2,mea,5.00000E-01,-1.04427E-01 -2,sig,5.00000E-01,1.11972E-01 -2,wei,5.00000E-01,1.58108E-01 -2,mea,7.50000E-01,-1.43790E-01 -2,sig,7.50000E-01,1.02267E-01 -2,wei,7.50000E-01,1.42247E-01 -2,mea,1.00000E+00,-1.82674E-01 -2,sig,1.00000E+00,9.46679E-02 -2,wei,1.00000E+00,1.31485E-01 -2,mea,1.20000E+00,-2.10544E-01 -2,sig,1.20000E+00,9.11572E-02 -2,wei,1.20000E+00,1.26975E-01 -2,mea,1.50000E+00,-2.44172E-01 -2,sig,1.50000E+00,8.77551E-02 -2,wei,1.50000E+00,1.22495E-01 -2,mea,1.75000E+00,-2.64176E-01 -2,sig,1.75000E+00,8.45483E-02 -2,wei,1.75000E+00,1.18420E-01 -2,mea,2.00000E+00,-2.79919E-01 -2,sig,2.00000E+00,8.17758E-02 -2,wei,2.00000E+00,1.14830E-01 -3,mea,0.00000E+00,-2.24096E-01 -3,sig,0.00000E+00,7.72962E-02 -3,wei,0.00000E+00,1.26862E-01 -3,mea,1.00000E-01,-1.85081E-01 -3,sig,1.00000E-01,1.22195E-01 -3,wei,1.00000E-01,1.74586E-01 -3,mea,2.00000E-01,-1.09713E-01 -3,sig,2.00000E-01,8.10488E-02 -3,wei,2.00000E-01,1.25192E-01 -3,mea,3.00000E-01,-1.08468E-01 -3,sig,3.00000E-01,6.45748E-02 -3,wei,3.00000E-01,9.79815E-02 -3,mea,4.00000E-01,-1.41723E-01 -3,sig,4.00000E-01,7.25641E-02 -3,wei,4.00000E-01,1.08052E-01 -3,mea,5.00000E-01,-1.70691E-01 -3,sig,5.00000E-01,7.83901E-02 -3,wei,5.00000E-01,1.14947E-01 -3,mea,7.50000E-01,-2.18554E-01 -3,sig,7.50000E-01,8.17086E-02 -3,wei,7.50000E-01,1.17420E-01 -3,mea,1.00000E+00,-2.75375E-01 -3,sig,1.00000E+00,8.84502E-02 -3,wei,1.00000E+00,1.26054E-01 -3,mea,1.20000E+00,-3.28320E-01 -3,sig,1.20000E+00,9.51542E-02 -3,wei,1.20000E+00,1.35635E-01 -3,mea,1.50000E+00,-3.83303E-01 -3,sig,1.50000E+00,9.82147E-02 -3,wei,1.50000E+00,1.40036E-01 -3,mea,1.75000E+00,-4.22607E-01 -3,sig,1.75000E+00,1.00092E-01 -3,wei,1.75000E+00,1.42592E-01 -3,mea,2.00000E+00,-4.59226E-01 -3,sig,2.00000E+00,1.02185E-01 -3,wei,2.00000E+00,1.45331E-01 -4,mea,0.00000E+00,-4.02916E-02 -4,sig,0.00000E+00,1.45632E-02 -4,wei,0.00000E+00,2.41600E-02 -4,mea,1.00000E-01,-3.01780E-02 -4,sig,1.00000E-01,2.19284E-02 -4,wei,1.00000E-01,3.17507E-02 -4,mea,2.00000E-01,-2.50719E-02 -4,sig,2.00000E-01,2.11300E-02 -4,wei,2.00000E-01,3.33876E-02 -4,mea,3.00000E-01,-2.51887E-02 -4,sig,3.00000E-01,1.63025E-02 -4,wei,3.00000E-01,2.56285E-02 -4,mea,4.00000E-01,-3.37379E-02 -4,sig,4.00000E-01,1.84628E-02 -4,wei,4.00000E-01,2.84262E-02 -4,mea,5.00000E-01,-4.26426E-02 -4,sig,5.00000E-01,2.07411E-02 -4,wei,5.00000E-01,3.12152E-02 -4,mea,7.50000E-01,-6.09586E-02 -4,sig,7.50000E-01,2.37129E-02 -4,wei,7.50000E-01,3.44869E-02 -4,mea,1.00000E+00,-8.17817E-02 -4,sig,1.00000E+00,2.70084E-02 -4,wei,1.00000E+00,3.87143E-02 -4,mea,1.20000E+00,-1.00216E-01 -4,sig,1.20000E+00,2.96759E-02 -4,wei,1.20000E+00,4.24607E-02 -4,mea,1.50000E+00,-1.19985E-01 -4,sig,1.50000E+00,3.12188E-02 -4,wei,1.50000E+00,4.46108E-02 -4,mea,1.75000E+00,-1.33900E-01 -4,sig,1.75000E+00,3.21056E-02 -4,wei,1.75000E+00,4.58125E-02 -4,mea,2.00000E+00,-1.46871E-01 -4,sig,2.00000E+00,3.30124E-02 -4,wei,2.00000E+00,4.70067E-02 +0,mea,0.00000E+00,-7.68596E-01 +0,sig,0.00000E+00,3.53937E-01 +0,wei,0.00000E+00,5.71000E-01 +0,mea,1.00000E-01,-3.33776E-01 +0,sig,1.00000E-01,3.58038E-01 +0,wei,1.00000E-01,5.38431E-01 +0,mea,2.00000E-01,-2.96797E-01 +0,sig,2.00000E-01,3.87066E-01 +0,wei,2.00000E-01,5.78269E-01 +0,mea,3.00000E-01,-3.71835E-01 +0,sig,3.00000E-01,4.13765E-01 +0,wei,3.00000E-01,6.12589E-01 +0,mea,4.00000E-01,-5.02764E-01 +0,sig,4.00000E-01,4.20597E-01 +0,wei,4.00000E-01,6.14526E-01 +0,mea,5.00000E-01,-6.11230E-01 +0,sig,5.00000E-01,4.28252E-01 +0,wei,5.00000E-01,6.17189E-01 +0,mea,7.50000E-01,-8.39250E-01 +0,sig,7.50000E-01,4.50134E-01 +0,wei,7.50000E-01,6.30514E-01 +0,mea,1.00000E+00,-1.06707E+00 +0,sig,1.00000E+00,4.57311E-01 +0,wei,1.00000E+00,6.37307E-01 +0,mea,1.20000E+00,-1.24350E+00 +0,sig,1.20000E+00,4.55386E-01 +0,wei,1.20000E+00,6.35485E-01 +0,mea,1.50000E+00,-1.47458E+00 +0,sig,1.50000E+00,4.58981E-01 +0,wei,1.50000E+00,6.40751E-01 +0,mea,1.75000E+00,-1.63660E+00 +0,sig,1.75000E+00,4.61592E-01 +0,wei,1.75000E+00,6.47029E-01 +0,mea,2.00000E+00,-1.77415E+00 +0,sig,2.00000E+00,4.62712E-01 +0,wei,2.00000E+00,6.50580E-01 +1,mea,0.00000E+00,-1.32200E-01 +1,sig,0.00000E+00,5.61849E-02 +1,wei,0.00000E+00,8.69001E-02 +1,mea,1.00000E-01,-6.67702E-02 +1,sig,1.00000E-01,5.88798E-02 +1,wei,1.00000E-01,8.52817E-02 +1,mea,2.00000E-01,-6.07181E-02 +1,sig,2.00000E-01,5.89034E-02 +1,wei,2.00000E-01,8.40509E-02 +1,mea,3.00000E-01,-7.08830E-02 +1,sig,3.00000E-01,6.39647E-02 +1,wei,3.00000E-01,9.15403E-02 +1,mea,4.00000E-01,-8.85960E-02 +1,sig,4.00000E-01,6.09235E-02 +1,wei,4.00000E-01,8.58037E-02 +1,mea,5.00000E-01,-1.01251E-01 +1,sig,5.00000E-01,5.91583E-02 +1,wei,5.00000E-01,8.23848E-02 +1,mea,7.50000E-01,-1.24313E-01 +1,sig,7.50000E-01,5.78794E-02 +1,wei,7.50000E-01,7.91085E-02 +1,mea,1.00000E+00,-1.40456E-01 +1,sig,1.00000E+00,5.21594E-02 +1,wei,1.00000E+00,7.12729E-02 +1,mea,1.20000E+00,-1.47447E-01 +1,sig,1.20000E+00,4.62449E-02 +1,wei,1.20000E+00,6.33852E-02 +1,mea,1.50000E+00,-1.53678E-01 +1,sig,1.50000E+00,4.04818E-02 +1,wei,1.50000E+00,5.56697E-02 +1,mea,1.75000E+00,-1.55412E-01 +1,sig,1.75000E+00,3.67367E-02 +1,wei,1.75000E+00,5.08687E-02 +1,mea,2.00000E+00,-1.54910E-01 +1,sig,2.00000E+00,3.35922E-02 +1,wei,2.00000E+00,4.67873E-02 +2,mea,0.00000E+00,-1.94716E-01 +2,sig,0.00000E+00,1.26803E-01 +2,wei,0.00000E+00,1.95556E-01 +2,mea,1.00000E-01,-5.27555E-02 +2,sig,1.00000E-01,1.17907E-01 +2,wei,1.00000E-01,1.74403E-01 +2,mea,2.00000E-01,-2.74713E-02 +2,sig,2.00000E-01,1.26972E-01 +2,wei,2.00000E-01,1.83456E-01 +2,mea,3.00000E-01,-5.03695E-02 +2,sig,3.00000E-01,1.22503E-01 +2,wei,3.00000E-01,1.76009E-01 +2,mea,4.00000E-01,-8.11304E-02 +2,sig,4.00000E-01,1.17384E-01 +2,wei,4.00000E-01,1.67288E-01 +2,mea,5.00000E-01,-1.04436E-01 +2,sig,5.00000E-01,1.11980E-01 +2,wei,5.00000E-01,1.58119E-01 +2,mea,7.50000E-01,-1.43785E-01 +2,sig,7.50000E-01,1.02264E-01 +2,wei,7.50000E-01,1.42243E-01 +2,mea,1.00000E+00,-1.82702E-01 +2,sig,1.00000E+00,9.46797E-02 +2,wei,1.00000E+00,1.31501E-01 +2,mea,1.20000E+00,-2.10303E-01 +2,sig,1.20000E+00,9.10682E-02 +2,wei,1.20000E+00,1.26852E-01 +2,mea,1.50000E+00,-2.44094E-01 +2,sig,1.50000E+00,8.77308E-02 +2,wei,1.50000E+00,1.22461E-01 +2,mea,1.75000E+00,-2.64267E-01 +2,sig,1.75000E+00,8.45738E-02 +2,wei,1.75000E+00,1.18455E-01 +2,mea,2.00000E+00,-2.80098E-01 +2,sig,2.00000E+00,8.18217E-02 +2,wei,2.00000E+00,1.14894E-01 +3,mea,0.00000E+00,-2.24025E-01 +3,sig,0.00000E+00,7.72719E-02 +3,wei,0.00000E+00,1.26822E-01 +3,mea,1.00000E-01,-1.84654E-01 +3,sig,1.00000E-01,1.21916E-01 +3,wei,1.00000E-01,1.74187E-01 +3,mea,2.00000E-01,-1.09488E-01 +3,sig,2.00000E-01,8.08861E-02 +3,wei,2.00000E-01,1.24941E-01 +3,mea,3.00000E-01,-1.08458E-01 +3,sig,3.00000E-01,6.45690E-02 +3,wei,3.00000E-01,9.79727E-02 +3,mea,4.00000E-01,-1.41534E-01 +3,sig,4.00000E-01,7.24686E-02 +3,wei,4.00000E-01,1.07909E-01 +3,mea,5.00000E-01,-1.70713E-01 +3,sig,5.00000E-01,7.84001E-02 +3,wei,5.00000E-01,1.14962E-01 +3,mea,7.50000E-01,-2.18543E-01 +3,sig,7.50000E-01,8.17044E-02 +3,wei,7.50000E-01,1.17414E-01 +3,mea,1.00000E+00,-2.75439E-01 +3,sig,1.00000E+00,8.84701E-02 +3,wei,1.00000E+00,1.26083E-01 +3,mea,1.20000E+00,-3.27742E-01 +3,sig,1.20000E+00,9.49905E-02 +3,wei,1.20000E+00,1.35402E-01 +3,mea,1.50000E+00,-3.83114E-01 +3,sig,1.50000E+00,9.81674E-02 +3,wei,1.50000E+00,1.39969E-01 +3,mea,1.75000E+00,-4.22832E-01 +3,sig,1.75000E+00,1.00144E-01 +3,wei,1.75000E+00,1.42666E-01 +3,mea,2.00000E+00,-4.59676E-01 +3,sig,2.00000E+00,1.02282E-01 +3,wei,2.00000E+00,1.45470E-01 +4,mea,0.00000E+00,-4.02794E-02 +4,sig,0.00000E+00,1.45588E-02 +4,wei,0.00000E+00,2.41527E-02 +4,mea,1.00000E-01,-3.01113E-02 +4,sig,1.00000E-01,2.18804E-02 +4,wei,1.00000E-01,3.16808E-02 +4,mea,2.00000E-01,-2.50233E-02 +4,sig,2.00000E-01,2.10891E-02 +4,wei,2.00000E-01,3.33231E-02 +4,mea,3.00000E-01,-2.51865E-02 +4,sig,3.00000E-01,1.63011E-02 +4,wei,3.00000E-01,2.56263E-02 +4,mea,4.00000E-01,-3.36936E-02 +4,sig,4.00000E-01,1.84388E-02 +4,wei,4.00000E-01,2.83893E-02 +4,mea,5.00000E-01,-4.26480E-02 +4,sig,5.00000E-01,2.07437E-02 +4,wei,5.00000E-01,3.12191E-02 +4,mea,7.50000E-01,-6.09555E-02 +4,sig,7.50000E-01,2.37117E-02 +4,wei,7.50000E-01,3.44851E-02 +4,mea,1.00000E+00,-8.17997E-02 +4,sig,1.00000E+00,2.70143E-02 +4,wei,1.00000E+00,3.87227E-02 +4,mea,1.20000E+00,-1.00046E-01 +4,sig,1.20000E+00,2.96264E-02 +4,wei,1.20000E+00,4.23900E-02 +4,mea,1.50000E+00,-1.19927E-01 +4,sig,1.50000E+00,3.12041E-02 +4,wei,1.50000E+00,4.45899E-02 +4,mea,1.75000E+00,-1.33970E-01 +4,sig,1.75000E+00,3.21219E-02 +4,wei,1.75000E+00,4.58358E-02 +4,mea,2.00000E+00,-1.47011E-01 +4,sig,2.00000E+00,3.30433E-02 +4,wei,2.00000E+00,4.70507E-02 diff --git a/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectra-0-1.csv b/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectra-0-1.csv index 8929f4ad6d0e..b1294ea10f9e 100644 --- a/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectra-0-1.csv +++ b/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectra-0-1.csv @@ -1,182 +1,182 @@ -#,,,"generated_by='OpenQuake engine 3.22.0-git790b48a5bd', start_date='2024-10-11T09:38:42', checksum=3680515047, site_id=0, lon=0.0, lat=0.0, poe=0.000404" +#,,,"generated_by='OpenQuake engine 3.22.0-gita7d73b72de', start_date='2024-10-21T14:14:30', checksum=3418894507, site_id=0, lon=0.0, lat=0.0, poe=0.000404" grp_id,kind,period,value -0,mea,0.00000E+00,-7.08169E-01 -0,sig,0.00000E+00,3.30104E-01 -0,wei,0.00000E+00,5.32235E-01 -0,mea,1.00000E-01,-3.06737E-01 -0,sig,1.00000E-01,3.46410E-01 -0,wei,1.00000E-01,5.20340E-01 -0,mea,2.00000E-01,-3.90323E-01 -0,sig,2.00000E-01,5.23132E-01 -0,wei,2.00000E-01,7.81607E-01 -0,mea,3.00000E-01,-3.36265E-01 -0,sig,3.00000E-01,3.98193E-01 -0,wei,3.00000E-01,5.90792E-01 -0,mea,4.00000E-01,-4.59768E-01 -0,sig,4.00000E-01,4.09672E-01 -0,wei,4.00000E-01,5.99312E-01 -0,mea,5.00000E-01,-5.64986E-01 -0,sig,5.00000E-01,4.22248E-01 -0,wei,5.00000E-01,6.10083E-01 -0,mea,7.50000E-01,-7.86349E-01 -0,sig,7.50000E-01,4.56729E-01 -0,wei,7.50000E-01,6.41205E-01 -0,mea,1.00000E+00,-1.01792E+00 -0,sig,1.00000E+00,4.74225E-01 -0,wei,1.00000E+00,6.61973E-01 -0,mea,1.20000E+00,-1.19723E+00 -0,sig,1.20000E+00,4.74351E-01 -0,wei,1.20000E+00,6.62933E-01 -0,mea,1.50000E+00,-1.42963E+00 -0,sig,1.50000E+00,4.80698E-01 -0,wei,1.50000E+00,6.71661E-01 -0,mea,1.75000E+00,-1.58884E+00 -0,sig,1.75000E+00,4.84754E-01 -0,wei,1.75000E+00,6.80759E-01 -0,mea,2.00000E+00,-1.72660E+00 -0,sig,2.00000E+00,4.87809E-01 -0,wei,2.00000E+00,6.87701E-01 -1,mea,0.00000E+00,-1.13985E-01 -1,sig,0.00000E+00,4.85196E-02 -1,wei,0.00000E+00,7.43180E-02 -1,mea,1.00000E-01,-5.92154E-02 -1,sig,1.00000E-01,5.32191E-02 -1,wei,1.00000E-01,7.69344E-02 -1,mea,2.00000E-01,-7.63461E-02 -1,sig,2.00000E-01,7.40664E-02 -1,wei,2.00000E-01,1.04924E-01 -1,mea,3.00000E-01,-6.10723E-02 -1,sig,3.00000E-01,5.66885E-02 -1,wei,3.00000E-01,8.10542E-02 -1,mea,4.00000E-01,-7.43581E-02 -1,sig,4.00000E-01,5.22423E-02 -1,wei,4.00000E-01,7.31544E-02 -1,mea,5.00000E-01,-8.30016E-02 -1,sig,5.00000E-01,4.96024E-02 -1,wei,5.00000E-01,6.88241E-02 -1,mea,7.50000E-01,-9.90787E-02 -1,sig,7.50000E-01,4.83094E-02 -1,wei,7.50000E-01,6.63073E-02 -1,mea,1.00000E+00,-1.05339E-01 -1,sig,1.00000E+00,4.09908E-02 -1,wei,1.00000E+00,5.62247E-02 -1,mea,1.20000E+00,-1.01930E-01 -1,sig,1.20000E+00,3.32319E-02 -1,wei,1.20000E+00,4.56675E-02 -1,mea,1.50000E+00,-9.47570E-02 -1,sig,1.50000E+00,2.57942E-02 -1,wei,1.50000E+00,3.55089E-02 -1,mea,1.75000E+00,-8.65221E-02 -1,sig,1.75000E+00,2.10167E-02 -1,wei,1.75000E+00,2.91561E-02 -1,mea,2.00000E+00,-7.84616E-02 -1,sig,2.00000E+00,1.74079E-02 -1,wei,2.00000E+00,2.43094E-02 -2,mea,0.00000E+00,-2.68132E-01 -2,sig,0.00000E+00,2.01697E-01 -2,wei,0.00000E+00,3.16478E-01 -2,mea,1.00000E-01,-4.08614E-02 -2,sig,1.00000E-01,1.71223E-01 -2,wei,1.00000E-01,2.57478E-01 -2,mea,2.00000E-01,-7.02995E-03 -2,sig,2.00000E-01,2.53861E-01 -2,wei,2.00000E-01,3.71367E-01 -2,mea,3.00000E-01,-2.48963E-02 -2,sig,3.00000E-01,1.86136E-01 -2,wei,3.00000E-01,2.71441E-01 -2,mea,4.00000E-01,-6.91604E-02 -2,sig,4.00000E-01,1.80850E-01 -2,wei,4.00000E-01,2.61219E-01 -2,mea,5.00000E-01,-1.04287E-01 -2,sig,5.00000E-01,1.72195E-01 -2,wei,5.00000E-01,2.46294E-01 -2,mea,7.50000E-01,-1.56937E-01 -2,sig,7.50000E-01,1.56183E-01 -2,wei,7.50000E-01,2.19397E-01 -2,mea,1.00000E+00,-2.15607E-01 -2,sig,1.00000E+00,1.40668E-01 -2,wei,1.00000E+00,1.97027E-01 -2,mea,1.20000E+00,-2.60293E-01 -2,sig,1.20000E+00,1.37500E-01 -2,wei,1.20000E+00,1.92907E-01 -2,mea,1.50000E+00,-3.13530E-01 -2,sig,1.50000E+00,1.34151E-01 -2,wei,1.50000E+00,1.88253E-01 -2,mea,1.75000E+00,-3.42831E-01 -2,sig,1.75000E+00,1.28897E-01 -2,wei,1.75000E+00,1.81506E-01 -2,mea,2.00000E+00,-3.65453E-01 -2,sig,2.00000E+00,1.24255E-01 -2,wei,2.00000E+00,1.75420E-01 -3,mea,0.00000E+00,-1.15687E-01 -3,sig,0.00000E+00,4.02893E-02 -3,wei,0.00000E+00,6.61684E-02 -3,mea,1.00000E-01,-1.29964E-01 -3,sig,1.00000E-01,8.75994E-02 -3,wei,1.00000E-01,1.24730E-01 -3,mea,2.00000E-01,-9.48513E-02 -3,sig,2.00000E-01,7.18792E-02 -3,wei,2.00000E-01,1.11015E-01 -3,mea,3.00000E-01,-5.33789E-02 -3,sig,3.00000E-01,3.22264E-02 -3,wei,3.00000E-01,4.83897E-02 -3,mea,4.00000E-01,-7.21902E-02 -3,sig,4.00000E-01,3.77782E-02 -3,wei,4.00000E-01,5.57901E-02 -3,mea,5.00000E-01,-8.81523E-02 -3,sig,5.00000E-01,4.15597E-02 -3,wei,5.00000E-01,6.07831E-02 -3,mea,7.50000E-01,-1.05648E-01 -3,sig,7.50000E-01,4.09201E-02 -3,wei,7.50000E-01,5.90381E-02 -3,mea,1.00000E+00,-1.39521E-01 -3,sig,1.00000E+00,4.66359E-02 -3,wei,1.00000E+00,6.67466E-02 -3,mea,1.20000E+00,-1.76666E-01 -3,sig,1.20000E+00,5.33179E-02 -3,wei,1.20000E+00,7.62897E-02 -3,mea,1.50000E+00,-2.13154E-01 -3,sig,1.50000E+00,5.68775E-02 -3,wei,1.50000E+00,8.13478E-02 -3,mea,1.75000E+00,-2.37464E-01 -3,sig,1.75000E+00,5.85648E-02 -3,wei,1.75000E+00,8.36724E-02 -3,mea,2.00000E+00,-2.61068E-01 -3,sig,2.00000E+00,6.05086E-02 -3,wei,2.00000E+00,8.62844E-02 -4,mea,0.00000E+00,-2.25576E-02 -4,sig,0.00000E+00,8.21743E-03 -4,wei,0.00000E+00,1.36191E-02 -4,mea,1.00000E-01,-2.27271E-02 -4,sig,1.00000E-01,1.67788E-02 -4,wei,1.00000E-01,2.40962E-02 -4,mea,2.00000E-01,-2.30657E-02 -4,sig,2.00000E-01,1.94914E-02 -4,wei,2.00000E-01,3.08074E-02 -4,mea,3.00000E-01,-1.23240E-02 -4,sig,3.00000E-01,8.07406E-03 -4,wei,3.00000E-01,1.25900E-02 -4,mea,4.00000E-01,-1.72835E-02 -4,sig,4.00000E-01,9.65620E-03 -4,wei,4.00000E-01,1.47501E-02 -4,mea,5.00000E-01,-2.27183E-02 -4,sig,5.00000E-01,1.12774E-02 -4,wei,5.00000E-01,1.69083E-02 -4,mea,7.50000E-01,-3.12915E-02 -4,sig,7.50000E-01,1.24541E-02 -4,wei,7.50000E-01,1.81295E-02 -4,mea,1.00000E+00,-4.38919E-02 -4,sig,1.00000E+00,1.48877E-02 -4,wei,1.00000E+00,2.13785E-02 -4,mea,1.20000E+00,-5.67139E-02 -4,sig,1.20000E+00,1.72839E-02 -4,wei,1.20000E+00,2.47763E-02 -4,mea,1.50000E+00,-6.94875E-02 -4,sig,1.50000E+00,1.86500E-02 -4,wei,1.50000E+00,2.66976E-02 -4,mea,1.75000E+00,-7.79056E-02 -4,sig,1.75000E+00,1.92935E-02 -4,wei,1.75000E+00,2.75808E-02 -4,mea,2.00000E+00,-8.60333E-02 -4,sig,2.00000E+00,2.00004E-02 -4,wei,2.00000E+00,2.85309E-02 +0,mea,0.00000E+00,-7.08102E-01 +0,sig,0.00000E+00,3.30073E-01 +0,wei,0.00000E+00,5.32185E-01 +0,mea,1.00000E-01,-3.06532E-01 +0,sig,1.00000E-01,3.46184E-01 +0,wei,1.00000E-01,5.20000E-01 +0,mea,2.00000E-01,-2.73231E-01 +0,sig,2.00000E-01,3.67681E-01 +0,wei,2.00000E-01,5.49158E-01 +0,mea,3.00000E-01,-3.35748E-01 +0,sig,3.00000E-01,3.97597E-01 +0,wei,3.00000E-01,5.89906E-01 +0,mea,4.00000E-01,-4.59005E-01 +0,sig,4.00000E-01,4.09011E-01 +0,wei,4.00000E-01,5.98346E-01 +0,mea,5.00000E-01,-5.64911E-01 +0,sig,5.00000E-01,4.22193E-01 +0,wei,5.00000E-01,6.10004E-01 +0,mea,7.50000E-01,-7.85204E-01 +0,sig,7.50000E-01,4.56089E-01 +0,wei,7.50000E-01,6.40309E-01 +0,mea,1.00000E+00,-1.01724E+00 +0,sig,1.00000E+00,4.73922E-01 +0,wei,1.00000E+00,6.61551E-01 +0,mea,1.20000E+00,-1.19722E+00 +0,sig,1.20000E+00,4.74344E-01 +0,wei,1.20000E+00,6.62923E-01 +0,mea,1.50000E+00,-1.42775E+00 +0,sig,1.50000E+00,4.80094E-01 +0,wei,1.50000E+00,6.70816E-01 +0,mea,1.75000E+00,-1.58805E+00 +0,sig,1.75000E+00,4.84524E-01 +0,wei,1.75000E+00,6.80437E-01 +0,mea,2.00000E+00,-1.72667E+00 +0,sig,2.00000E+00,4.87827E-01 +0,wei,2.00000E+00,6.87725E-01 +1,mea,0.00000E+00,-1.13974E-01 +1,sig,0.00000E+00,4.85149E-02 +1,wei,0.00000E+00,7.43107E-02 +1,mea,1.00000E-01,-5.91753E-02 +1,sig,1.00000E-01,5.31834E-02 +1,wei,1.00000E-01,7.68827E-02 +1,mea,2.00000E-01,-5.30915E-02 +1,sig,2.00000E-01,5.14737E-02 +1,wei,2.00000E-01,7.27771E-02 +1,mea,3.00000E-01,-6.09770E-02 +1,sig,3.00000E-01,5.66005E-02 +1,wei,3.00000E-01,8.09282E-02 +1,mea,4.00000E-01,-7.42303E-02 +1,sig,4.00000E-01,5.21531E-02 +1,wei,4.00000E-01,7.30289E-02 +1,mea,5.00000E-01,-8.29898E-02 +1,sig,5.00000E-01,4.95954E-02 +1,wei,5.00000E-01,6.88144E-02 +1,mea,7.50000E-01,-9.89223E-02 +1,sig,7.50000E-01,4.82343E-02 +1,wei,7.50000E-01,6.62046E-02 +1,mea,1.00000E+00,-1.05260E-01 +1,sig,1.00000E+00,4.09605E-02 +1,wei,1.00000E+00,5.61831E-02 +1,mea,1.20000E+00,-1.01928E-01 +1,sig,1.20000E+00,3.32313E-02 +1,wei,1.20000E+00,4.56667E-02 +1,mea,1.50000E+00,-9.46007E-02 +1,sig,1.50000E+00,2.57521E-02 +1,wei,1.50000E+00,3.54511E-02 +1,mea,1.75000E+00,-8.64655E-02 +1,sig,1.75000E+00,2.10031E-02 +1,wei,1.75000E+00,2.91372E-02 +1,mea,2.00000E+00,-7.84657E-02 +1,sig,2.00000E+00,1.74088E-02 +1,wei,2.00000E+00,2.43107E-02 +2,mea,0.00000E+00,-2.68113E-01 +2,sig,0.00000E+00,2.01684E-01 +2,wei,0.00000E+00,3.16458E-01 +2,mea,1.00000E-01,-4.08290E-02 +2,sig,1.00000E-01,1.71138E-01 +2,wei,1.00000E-01,2.57352E-01 +2,mea,2.00000E-01,2.76350E-03 +2,sig,2.00000E-01,1.98009E-01 +2,wei,2.00000E-01,2.90449E-01 +2,mea,3.00000E-01,-2.48307E-02 +2,sig,3.00000E-01,1.85935E-01 +2,wei,3.00000E-01,2.71152E-01 +2,mea,4.00000E-01,-6.90360E-02 +2,sig,4.00000E-01,1.80642E-01 +2,wei,4.00000E-01,2.60922E-01 +2,mea,5.00000E-01,-1.04274E-01 +2,sig,5.00000E-01,1.72179E-01 +2,wei,5.00000E-01,2.46271E-01 +2,mea,7.50000E-01,-1.56732E-01 +2,sig,7.50000E-01,1.56024E-01 +2,wei,7.50000E-01,2.19175E-01 +2,mea,1.00000E+00,-2.15485E-01 +2,sig,1.00000E+00,1.40600E-01 +2,wei,1.00000E+00,1.96932E-01 +2,mea,1.20000E+00,-2.60289E-01 +2,sig,1.20000E+00,1.37498E-01 +2,wei,1.20000E+00,1.92905E-01 +2,mea,1.50000E+00,-3.13199E-01 +2,sig,1.50000E+00,1.34025E-01 +2,wei,1.50000E+00,1.88077E-01 +2,mea,1.75000E+00,-3.42695E-01 +2,sig,1.75000E+00,1.28851E-01 +2,wei,1.75000E+00,1.81442E-01 +2,mea,2.00000E+00,-3.65464E-01 +2,sig,2.00000E+00,1.24258E-01 +2,wei,2.00000E+00,1.75425E-01 +3,mea,0.00000E+00,-1.15673E-01 +3,sig,0.00000E+00,4.02844E-02 +3,wei,0.00000E+00,6.61602E-02 +3,mea,1.00000E-01,-1.29867E-01 +3,sig,1.00000E-01,8.75341E-02 +3,wei,1.00000E-01,1.24637E-01 +3,mea,2.00000E-01,-6.02552E-02 +3,sig,2.00000E-01,4.57929E-02 +3,wei,2.00000E-01,7.06982E-02 +3,mea,3.00000E-01,-5.32716E-02 +3,sig,3.00000E-01,3.21617E-02 +3,wei,3.00000E-01,4.82920E-02 +3,mea,4.00000E-01,-7.20348E-02 +3,sig,4.00000E-01,3.76973E-02 +3,wei,4.00000E-01,5.56700E-02 +3,mea,5.00000E-01,-8.81370E-02 +3,sig,5.00000E-01,4.15526E-02 +3,wei,5.00000E-01,6.07725E-02 +3,mea,7.50000E-01,-1.05439E-01 +3,sig,7.50000E-01,4.08400E-02 +3,wei,7.50000E-01,5.89227E-02 +3,mea,1.00000E+00,-1.39396E-01 +3,sig,1.00000E+00,4.65945E-02 +3,wei,1.00000E+00,6.66874E-02 +3,mea,1.20000E+00,-1.76662E-01 +3,sig,1.20000E+00,5.33169E-02 +3,wei,1.20000E+00,7.62882E-02 +3,mea,1.50000E+00,-2.12785E-01 +3,sig,1.50000E+00,5.67805E-02 +3,wei,1.50000E+00,8.12093E-02 +3,mea,1.75000E+00,-2.37309E-01 +3,sig,1.75000E+00,5.85272E-02 +3,wei,1.75000E+00,8.36187E-02 +3,mea,2.00000E+00,-2.61081E-01 +3,sig,2.00000E+00,6.05115E-02 +3,wei,2.00000E+00,8.62886E-02 +4,mea,0.00000E+00,-2.25549E-02 +4,sig,0.00000E+00,8.21645E-03 +4,wei,0.00000E+00,1.36175E-02 +4,mea,1.00000E-01,-2.27106E-02 +4,sig,1.00000E-01,1.67667E-02 +4,wei,1.00000E-01,2.40786E-02 +4,mea,2.00000E-01,-1.47486E-02 +4,sig,2.00000E-01,1.24646E-02 +4,wei,2.00000E-01,1.96995E-02 +4,mea,3.00000E-01,-1.22988E-02 +4,sig,3.00000E-01,8.05763E-03 +4,wei,3.00000E-01,1.25643E-02 +4,mea,4.00000E-01,-1.72460E-02 +4,sig,4.00000E-01,9.63536E-03 +4,wei,4.00000E-01,1.47181E-02 +4,mea,5.00000E-01,-2.27143E-02 +4,sig,5.00000E-01,1.12754E-02 +4,wei,5.00000E-01,1.69054E-02 +4,mea,7.50000E-01,-3.12304E-02 +4,sig,7.50000E-01,1.24300E-02 +4,wei,7.50000E-01,1.80944E-02 +4,mea,1.00000E+00,-4.38529E-02 +4,sig,1.00000E+00,1.48746E-02 +4,wei,1.00000E+00,2.13597E-02 +4,mea,1.20000E+00,-5.67128E-02 +4,sig,1.20000E+00,1.72836E-02 +4,wei,1.20000E+00,2.47758E-02 +4,mea,1.50000E+00,-6.93685E-02 +4,sig,1.50000E+00,1.86184E-02 +4,wei,1.50000E+00,2.66524E-02 +4,mea,1.75000E+00,-7.78552E-02 +4,sig,1.75000E+00,1.92811E-02 +4,wei,1.75000E+00,2.75632E-02 +4,mea,2.00000E+00,-8.60375E-02 +4,sig,2.00000E+00,2.00014E-02 +4,wei,2.00000E+00,2.85323E-02 diff --git a/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectra-1-0.csv b/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectra-1-0.csv index 80e024ce0697..8e2b5a7216e7 100644 --- a/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectra-1-0.csv +++ b/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectra-1-0.csv @@ -1,182 +1,182 @@ -#,,,"generated_by='OpenQuake engine 3.22.0-git790b48a5bd', start_date='2024-10-11T09:38:42', checksum=3680515047, site_id=1, lon=0.0, lat=0.1, poe=0.002105" +#,,,"generated_by='OpenQuake engine 3.22.0-gita7d73b72de', start_date='2024-10-21T14:14:53', checksum=3418894507, site_id=1, lon=0.0, lat=0.1, poe=0.002105" grp_id,kind,period,value -0,mea,0.00000E+00,-8.83683E-01 -0,sig,0.00000E+00,4.06384E-01 -0,wei,0.00000E+00,6.55434E-01 -0,mea,1.00000E-01,-3.78300E-01 -0,sig,1.00000E-01,4.03970E-01 -0,wei,1.00000E-01,6.07471E-01 -0,mea,2.00000E-01,-3.36785E-01 -0,sig,2.00000E-01,4.37610E-01 -0,wei,2.00000E-01,6.53681E-01 -0,mea,3.00000E-01,-4.20402E-01 -0,sig,3.00000E-01,4.64949E-01 -0,wei,3.00000E-01,6.88137E-01 -0,mea,4.00000E-01,-5.62234E-01 -0,sig,4.00000E-01,4.67807E-01 -0,wei,4.00000E-01,6.83352E-01 -0,mea,5.00000E-01,-6.76984E-01 -0,sig,5.00000E-01,4.71975E-01 -0,wei,5.00000E-01,6.80028E-01 -0,mea,7.50000E-01,-9.14455E-01 -0,sig,7.50000E-01,4.88026E-01 -0,wei,7.50000E-01,6.83473E-01 -0,mea,1.00000E+00,-1.14523E+00 -0,sig,1.00000E+00,4.88765E-01 -0,wei,1.00000E+00,6.81054E-01 -0,mea,1.20000E+00,-1.32902E+00 -0,sig,1.20000E+00,4.84939E-01 -0,wei,1.20000E+00,6.76651E-01 -0,mea,1.50000E+00,-1.56717E+00 -0,sig,1.50000E+00,4.86243E-01 -0,wei,1.50000E+00,6.78759E-01 -0,mea,1.75000E+00,-1.72650E+00 -0,sig,1.75000E+00,4.85579E-01 -0,wei,1.75000E+00,6.80584E-01 -0,mea,2.00000E+00,-1.86243E+00 -0,sig,2.00000E+00,4.84486E-01 -0,wei,2.00000E+00,6.81118E-01 -1,mea,0.00000E+00,-1.53228E-01 -1,sig,0.00000E+00,6.51081E-02 -1,wei,0.00000E+00,1.00752E-01 -1,mea,1.00000E-01,-7.59649E-02 -1,sig,1.00000E-01,6.68746E-02 -1,wei,1.00000E-01,9.68672E-02 -1,mea,2.00000E-01,-6.93090E-02 -1,sig,2.00000E-01,6.72183E-02 -1,wei,2.00000E-01,9.59743E-02 -1,mea,3.00000E-01,-8.05789E-02 -1,sig,3.00000E-01,7.24474E-02 -1,wei,3.00000E-01,1.03666E-01 -1,mea,4.00000E-01,-9.98237E-02 -1,sig,4.00000E-01,6.84692E-02 -1,wei,4.00000E-01,9.64525E-02 -1,mea,5.00000E-01,-1.13148E-01 -1,sig,5.00000E-01,6.59528E-02 -1,wei,5.00000E-01,9.18569E-02 -1,mea,7.50000E-01,-1.36766E-01 -1,sig,7.50000E-01,6.34539E-02 -1,wei,7.50000E-01,8.67076E-02 -1,mea,1.00000E+00,-1.52471E-01 -1,sig,1.00000E+00,5.64601E-02 -1,wei,1.00000E+00,7.71362E-02 -1,mea,1.20000E+00,-1.59867E-01 -1,sig,1.20000E+00,5.00318E-02 -1,wei,1.20000E+00,6.85685E-02 -1,mea,1.50000E+00,-1.66215E-01 -1,sig,1.50000E+00,4.37141E-02 -1,wei,1.50000E+00,6.01128E-02 -1,mea,1.75000E+00,-1.66997E-01 -1,sig,1.75000E+00,3.94299E-02 -1,wei,1.75000E+00,5.45943E-02 -1,mea,2.00000E+00,-1.65785E-01 -1,sig,2.00000E+00,3.59192E-02 -1,wei,2.00000E+00,5.00239E-02 -2,mea,0.00000E+00,-8.24085E-02 -2,sig,0.00000E+00,4.18773E-02 -2,wei,0.00000E+00,6.75041E-02 -2,mea,1.00000E-01,-3.41859E-02 -2,sig,1.00000E-01,4.08703E-02 -2,wei,1.00000E-01,6.21526E-02 -2,mea,2.00000E-01,-2.65535E-02 -2,sig,2.00000E-01,4.53692E-02 -2,wei,2.00000E-01,6.81628E-02 -2,mea,3.00000E-01,-3.33280E-02 -2,sig,3.00000E-01,4.54163E-02 -2,wei,3.00000E-01,6.77587E-02 -2,mea,4.00000E-01,-4.44563E-02 -2,sig,4.00000E-01,4.54126E-02 -2,wei,4.00000E-01,6.70912E-02 -2,mea,5.00000E-01,-5.35538E-02 -2,sig,5.00000E-01,4.52213E-02 -2,wei,5.00000E-01,6.59981E-02 -2,mea,7.50000E-01,-7.22539E-02 -2,sig,7.50000E-01,4.51716E-02 -2,wei,7.50000E-01,6.42093E-02 -2,mea,1.00000E+00,-9.25462E-02 -2,sig,1.00000E+00,4.56972E-02 -2,wei,1.00000E+00,6.44690E-02 -2,mea,1.20000E+00,-1.09056E-01 -2,sig,1.20000E+00,4.60598E-02 -2,wei,1.20000E+00,6.49604E-02 -2,mea,1.50000E+00,-1.31243E-01 -2,sig,1.50000E+00,4.69049E-02 -2,wei,1.50000E+00,6.60449E-02 -2,mea,1.75000E+00,-1.46868E-01 -2,sig,1.75000E+00,4.72681E-02 -2,wei,1.75000E+00,6.67217E-02 -2,mea,2.00000E+00,-1.60464E-01 -2,sig,2.00000E+00,4.75022E-02 -2,wei,2.00000E+00,6.71720E-02 -3,mea,0.00000E+00,-2.71828E-01 -3,sig,0.00000E+00,9.36698E-02 -3,wei,0.00000E+00,1.53711E-01 -3,mea,1.00000E-01,-2.14450E-01 -3,sig,1.00000E-01,1.41332E-01 -3,wei,1.00000E-01,2.01974E-01 -3,mea,2.00000E-01,-1.29742E-01 -3,sig,2.00000E-01,9.54677E-02 -3,wei,2.00000E-01,1.47446E-01 -3,mea,3.00000E-01,-1.28823E-01 -3,sig,3.00000E-01,7.65099E-02 -3,wei,3.00000E-01,1.16157E-01 -3,mea,4.00000E-01,-1.65261E-01 -3,sig,4.00000E-01,8.44007E-02 -3,wei,4.00000E-01,1.25730E-01 -3,mea,5.00000E-01,-1.96608E-01 -3,sig,5.00000E-01,9.00657E-02 -3,wei,5.00000E-01,1.32075E-01 -3,mea,7.50000E-01,-2.46885E-01 -3,sig,7.50000E-01,9.20715E-02 -3,wei,7.50000E-01,1.32274E-01 -3,mea,1.00000E+00,-3.04142E-01 -3,sig,1.00000E+00,9.74724E-02 -3,wei,1.00000E+00,1.38877E-01 -3,mea,1.20000E+00,-3.58981E-01 -3,sig,1.20000E+00,1.03825E-01 -3,wei,1.20000E+00,1.47964E-01 -3,mea,1.50000E+00,-4.15951E-01 -3,sig,1.50000E+00,1.06374E-01 -3,wei,1.50000E+00,1.51647E-01 -3,mea,1.75000E+00,-4.54313E-01 -3,sig,1.75000E+00,1.07416E-01 -3,wei,1.75000E+00,1.53007E-01 -3,mea,2.00000E+00,-4.90462E-01 -3,sig,2.00000E+00,1.08962E-01 -3,wei,2.00000E+00,1.54954E-01 -4,mea,0.00000E+00,-4.84574E-02 -4,sig,0.00000E+00,1.75016E-02 -4,wei,0.00000E+00,2.90363E-02 -4,mea,1.00000E-01,-3.47494E-02 -4,sig,1.00000E-01,2.52166E-02 -4,wei,1.00000E-01,3.65353E-02 -4,mea,2.00000E-01,-2.93535E-02 -4,sig,2.00000E-01,2.47266E-02 -4,wei,2.00000E-01,3.90670E-02 -4,mea,3.00000E-01,-2.98155E-02 -4,sig,3.00000E-01,1.92738E-02 -4,wei,3.00000E-01,3.03139E-02 -4,mea,4.00000E-01,-3.92109E-02 -4,sig,4.00000E-01,2.14206E-02 -4,wei,4.00000E-01,3.29954E-02 -4,mea,5.00000E-01,-4.88941E-02 -4,sig,5.00000E-01,2.37457E-02 -4,wei,5.00000E-01,3.57439E-02 -4,mea,7.50000E-01,-6.84946E-02 -4,sig,7.50000E-01,2.66087E-02 -4,wei,7.50000E-01,3.86958E-02 -4,mea,1.00000E+00,-8.99365E-02 -4,sig,1.00000E+00,2.96643E-02 -4,wei,1.00000E+00,4.25174E-02 -4,mea,1.20000E+00,-1.09181E-01 -4,sig,1.20000E+00,3.22900E-02 -4,wei,1.20000E+00,4.61971E-02 -4,mea,1.50000E+00,-1.29835E-01 -4,sig,1.50000E+00,3.37382E-02 -4,wei,1.50000E+00,4.82076E-02 -4,mea,1.75000E+00,-1.43623E-01 -4,sig,1.75000E+00,3.43952E-02 -4,wei,1.75000E+00,4.90762E-02 -4,mea,2.00000E+00,-1.56572E-01 -4,sig,2.00000E+00,3.51521E-02 -4,wei,2.00000E+00,5.00503E-02 +0,mea,0.00000E+00,-8.82643E-01 +0,sig,0.00000E+00,4.05911E-01 +0,wei,0.00000E+00,6.54672E-01 +0,mea,1.00000E-01,-3.78077E-01 +0,sig,1.00000E-01,4.03742E-01 +0,wei,1.00000E-01,6.07127E-01 +0,mea,2.00000E-01,-3.36831E-01 +0,sig,2.00000E-01,4.37668E-01 +0,wei,2.00000E-01,6.53768E-01 +0,mea,3.00000E-01,-4.19641E-01 +0,sig,3.00000E-01,4.64151E-01 +0,wei,3.00000E-01,6.86959E-01 +0,mea,4.00000E-01,-5.61481E-01 +0,sig,4.00000E-01,4.67212E-01 +0,wei,4.00000E-01,6.82485E-01 +0,mea,5.00000E-01,-6.76023E-01 +0,sig,5.00000E-01,4.71338E-01 +0,wei,5.00000E-01,6.79113E-01 +0,mea,7.50000E-01,-9.13811E-01 +0,sig,7.50000E-01,4.87703E-01 +0,wei,7.50000E-01,6.83021E-01 +0,mea,1.00000E+00,-1.14530E+00 +0,sig,1.00000E+00,4.88794E-01 +0,wei,1.00000E+00,6.81095E-01 +0,mea,1.20000E+00,-1.32881E+00 +0,sig,1.20000E+00,4.84868E-01 +0,wei,1.20000E+00,6.76553E-01 +0,mea,1.50000E+00,-1.56660E+00 +0,sig,1.50000E+00,4.86073E-01 +0,wei,1.50000E+00,6.78523E-01 +0,mea,1.75000E+00,-1.72786E+00 +0,sig,1.75000E+00,4.85941E-01 +0,wei,1.75000E+00,6.81090E-01 +0,mea,2.00000E+00,-1.86699E+00 +0,sig,2.00000E+00,4.85608E-01 +0,wei,2.00000E+00,6.82692E-01 +1,mea,0.00000E+00,-1.53037E-01 +1,sig,0.00000E+00,6.50271E-02 +1,wei,0.00000E+00,1.00626E-01 +1,mea,1.00000E-01,-7.59189E-02 +1,sig,1.00000E-01,6.68346E-02 +1,wei,1.00000E-01,9.68092E-02 +1,mea,2.00000E-01,-6.93189E-02 +1,sig,2.00000E-01,6.72280E-02 +1,wei,2.00000E-01,9.59881E-02 +1,mea,3.00000E-01,-8.04264E-02 +1,sig,3.00000E-01,7.23144E-02 +1,wei,3.00000E-01,1.03476E-01 +1,mea,4.00000E-01,-9.96809E-02 +1,sig,4.00000E-01,6.83734E-02 +1,wei,4.00000E-01,9.63174E-02 +1,mea,5.00000E-01,-1.12973E-01 +1,sig,5.00000E-01,6.58532E-02 +1,wei,5.00000E-01,9.17180E-02 +1,mea,7.50000E-01,-1.36659E-01 +1,sig,7.50000E-01,6.34060E-02 +1,wei,7.50000E-01,8.66423E-02 +1,mea,1.00000E+00,-1.52482E-01 +1,sig,1.00000E+00,5.64641E-02 +1,wei,1.00000E+00,7.71416E-02 +1,mea,1.20000E+00,-1.59837E-01 +1,sig,1.20000E+00,5.00226E-02 +1,wei,1.20000E+00,6.85559E-02 +1,mea,1.50000E+00,-1.66136E-01 +1,sig,1.50000E+00,4.36938E-02 +1,wei,1.50000E+00,6.00849E-02 +1,mea,1.75000E+00,-1.67174E-01 +1,sig,1.75000E+00,3.94709E-02 +1,wei,1.75000E+00,5.46510E-02 +1,mea,2.00000E+00,-1.66352E-01 +1,sig,2.00000E+00,3.60405E-02 +1,wei,2.00000E+00,5.01926E-02 +2,mea,0.00000E+00,-8.23084E-02 +2,sig,0.00000E+00,4.18331E-02 +2,wei,0.00000E+00,6.74345E-02 +2,mea,1.00000E-01,-3.41613E-02 +2,sig,1.00000E-01,4.08481E-02 +2,wei,1.00000E-01,6.21194E-02 +2,mea,2.00000E-01,-2.65585E-02 +2,sig,2.00000E-01,4.53748E-02 +2,wei,2.00000E-01,6.81710E-02 +2,mea,3.00000E-01,-3.32502E-02 +2,sig,3.00000E-01,4.53435E-02 +2,wei,3.00000E-01,6.76520E-02 +2,mea,4.00000E-01,-4.43855E-02 +2,sig,4.00000E-01,4.53600E-02 +2,wei,4.00000E-01,6.70147E-02 +2,mea,5.00000E-01,-5.34681E-02 +2,sig,5.00000E-01,4.51665E-02 +2,wei,5.00000E-01,6.59194E-02 +2,mea,7.50000E-01,-7.22007E-02 +2,sig,7.50000E-01,4.51452E-02 +2,wei,7.50000E-01,6.41721E-02 +2,mea,1.00000E+00,-9.25519E-02 +2,sig,1.00000E+00,4.56996E-02 +2,wei,1.00000E+00,6.44722E-02 +2,mea,1.20000E+00,-1.09040E-01 +2,sig,1.20000E+00,4.60543E-02 +2,wei,1.20000E+00,6.49527E-02 +2,mea,1.50000E+00,-1.31200E-01 +2,sig,1.50000E+00,4.68918E-02 +2,wei,1.50000E+00,6.60266E-02 +2,mea,1.75000E+00,-1.46969E-01 +2,sig,1.75000E+00,4.72957E-02 +2,wei,1.75000E+00,6.67605E-02 +2,mea,2.00000E+00,-1.60798E-01 +2,sig,2.00000E+00,4.75874E-02 +2,wei,2.00000E+00,6.72920E-02 +3,mea,0.00000E+00,-2.71383E-01 +3,sig,0.00000E+00,9.35173E-02 +3,wei,0.00000E+00,1.53461E-01 +3,mea,1.00000E-01,-2.14299E-01 +3,sig,1.00000E-01,1.41233E-01 +3,wei,1.00000E-01,2.01833E-01 +3,mea,2.00000E-01,-1.29766E-01 +3,sig,2.00000E-01,9.54849E-02 +3,wei,2.00000E-01,1.47473E-01 +3,mea,3.00000E-01,-1.28495E-01 +3,sig,3.00000E-01,7.63181E-02 +3,wei,3.00000E-01,1.15865E-01 +3,mea,4.00000E-01,-1.64954E-01 +3,sig,4.00000E-01,8.42464E-02 +3,wei,4.00000E-01,1.25499E-01 +3,mea,5.00000E-01,-1.96221E-01 +3,sig,5.00000E-01,8.98918E-02 +3,wei,5.00000E-01,1.31820E-01 +3,mea,7.50000E-01,-2.46638E-01 +3,sig,7.50000E-01,9.19811E-02 +3,wei,7.50000E-01,1.32144E-01 +3,mea,1.00000E+00,-3.04169E-01 +3,sig,1.00000E+00,9.74809E-02 +3,wei,1.00000E+00,1.38889E-01 +3,mea,1.20000E+00,-3.58905E-01 +3,sig,1.20000E+00,1.03803E-01 +3,wei,1.20000E+00,1.47934E-01 +3,mea,1.50000E+00,-4.15744E-01 +3,sig,1.50000E+00,1.06323E-01 +3,wei,1.50000E+00,1.51574E-01 +3,mea,1.75000E+00,-4.54793E-01 +3,sig,1.75000E+00,1.07527E-01 +3,wei,1.75000E+00,1.53165E-01 +3,mea,2.00000E+00,-4.92065E-01 +3,sig,2.00000E+00,1.09310E-01 +3,wei,2.00000E+00,1.55447E-01 +4,mea,0.00000E+00,-4.83817E-02 +4,sig,0.00000E+00,1.74744E-02 +4,wei,0.00000E+00,2.89911E-02 +4,mea,1.00000E-01,-3.47260E-02 +4,sig,1.00000E-01,2.51998E-02 +4,wei,1.00000E-01,3.65108E-02 +4,mea,2.00000E-01,-2.93586E-02 +4,sig,2.00000E-01,2.47309E-02 +4,wei,2.00000E-01,3.90737E-02 +4,mea,3.00000E-01,-2.97413E-02 +4,sig,3.00000E-01,1.92262E-02 +4,wei,3.00000E-01,3.02388E-02 +4,mea,4.00000E-01,-3.91397E-02 +4,sig,4.00000E-01,2.13821E-02 +4,wei,4.00000E-01,3.29360E-02 +4,mea,5.00000E-01,-4.88013E-02 +4,sig,5.00000E-01,2.37011E-02 +4,wei,5.00000E-01,3.56767E-02 +4,mea,7.50000E-01,-6.84290E-02 +4,sig,7.50000E-01,2.65835E-02 +4,wei,7.50000E-01,3.86592E-02 +4,mea,1.00000E+00,-8.99441E-02 +4,sig,1.00000E+00,2.96667E-02 +4,wei,1.00000E+00,4.25209E-02 +4,mea,1.20000E+00,-1.09159E-01 +4,sig,1.20000E+00,3.22836E-02 +4,wei,1.20000E+00,4.61879E-02 +4,mea,1.50000E+00,-1.29772E-01 +4,sig,1.50000E+00,3.37223E-02 +4,wei,1.50000E+00,4.81849E-02 +4,mea,1.75000E+00,-1.43770E-01 +4,sig,1.75000E+00,3.44297E-02 +4,wei,1.75000E+00,4.91255E-02 +4,mea,2.00000E+00,-1.57070E-01 +4,sig,2.00000E+00,3.52617E-02 +4,wei,2.00000E+00,5.02061E-02 diff --git a/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectra-1-1.csv b/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectra-1-1.csv index b9b0cefbc0dd..00f7162e6c64 100644 --- a/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectra-1-1.csv +++ b/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectra-1-1.csv @@ -1,182 +1,182 @@ -#,,,"generated_by='OpenQuake engine 3.22.0-git790b48a5bd', start_date='2024-10-11T09:38:42', checksum=3680515047, site_id=1, lon=0.0, lat=0.1, poe=0.000404" +#,,,"generated_by='OpenQuake engine 3.22.0-gita7d73b72de', start_date='2024-10-21T14:14:53', checksum=3418894507, site_id=1, lon=0.0, lat=0.1, poe=0.000404" grp_id,kind,period,value -0,mea,0.00000E+00,-9.31244E-01 -0,sig,0.00000E+00,4.33467E-01 -0,wei,0.00000E+00,6.99216E-01 -0,mea,1.00000E-01,-3.81071E-01 -0,sig,1.00000E-01,4.27998E-01 -0,wei,1.00000E-01,6.43086E-01 -0,mea,2.00000E-01,-3.90325E-01 -0,sig,2.00000E-01,5.23138E-01 -0,wei,2.00000E-01,7.81615E-01 -0,mea,3.00000E-01,-4.18773E-01 -0,sig,3.00000E-01,4.93041E-01 -0,wei,3.00000E-01,7.31477E-01 -0,mea,4.00000E-01,-5.62638E-01 -0,sig,4.00000E-01,4.98471E-01 -0,wei,4.00000E-01,7.29232E-01 -0,mea,5.00000E-01,-6.79742E-01 -0,sig,5.00000E-01,5.05192E-01 -0,wei,5.00000E-01,7.29819E-01 -0,mea,7.50000E-01,-9.12398E-01 -0,sig,7.50000E-01,5.26871E-01 -0,wei,7.50000E-01,7.39585E-01 -0,mea,1.00000E+00,-1.14610E+00 -0,sig,1.00000E+00,5.31232E-01 -0,wei,1.00000E+00,7.41514E-01 -0,mea,1.20000E+00,-1.33472E+00 -0,sig,1.20000E+00,5.26443E-01 -0,wei,1.20000E+00,7.35709E-01 -0,mea,1.50000E+00,-1.57255E+00 -0,sig,1.50000E+00,5.26668E-01 -0,wei,1.50000E+00,7.35893E-01 -0,mea,1.75000E+00,-1.72917E+00 -0,sig,1.75000E+00,5.25665E-01 -0,wei,1.75000E+00,7.38178E-01 -0,mea,2.00000E+00,-1.86242E+00 -0,sig,2.00000E+00,5.24435E-01 -0,wei,2.00000E+00,7.39279E-01 -1,mea,0.00000E+00,-1.50917E-01 -1,sig,0.00000E+00,6.42313E-02 -1,wei,0.00000E+00,9.85636E-02 -1,mea,1.00000E-01,-7.37961E-02 -1,sig,1.00000E-01,6.61887E-02 -1,wei,1.00000E-01,9.57146E-02 -1,mea,2.00000E-01,-7.63467E-02 -1,sig,2.00000E-01,7.40673E-02 -1,wei,2.00000E-01,1.04926E-01 -1,mea,3.00000E-01,-7.63459E-02 -1,sig,3.00000E-01,7.07484E-02 -1,wei,3.00000E-01,1.01194E-01 -1,mea,4.00000E-01,-9.16823E-02 -1,sig,4.00000E-01,6.43354E-02 -1,wei,4.00000E-01,9.01656E-02 -1,mea,5.00000E-01,-1.00925E-01 -1,sig,5.00000E-01,6.02375E-02 -1,wei,5.00000E-01,8.36256E-02 -1,mea,7.50000E-01,-1.16408E-01 -1,sig,7.50000E-01,5.66060E-02 -1,wei,7.50000E-01,7.76705E-02 -1,mea,1.00000E+00,-1.20458E-01 -1,sig,1.00000E+00,4.67683E-02 -1,wei,1.00000E+00,6.41347E-02 -1,mea,1.20000E+00,-1.15935E-01 -1,sig,1.20000E+00,3.77306E-02 -1,wei,1.20000E+00,5.18418E-02 -1,mea,1.50000E+00,-1.06814E-01 -1,sig,1.50000E+00,2.90361E-02 -1,wei,1.50000E+00,3.99694E-02 -1,mea,1.75000E+00,-9.67662E-02 -1,sig,1.75000E+00,2.34807E-02 -1,wei,1.75000E+00,3.25717E-02 -1,mea,2.00000E+00,-8.71316E-02 -1,sig,2.00000E+00,1.93163E-02 -1,wei,2.00000E+00,2.69717E-02 -2,mea,0.00000E+00,-9.03221E-02 -2,sig,0.00000E+00,5.68457E-02 -2,wei,0.00000E+00,9.39886E-02 -2,mea,1.00000E-01,-2.35017E-02 -2,sig,1.00000E-01,4.94936E-02 -2,wei,1.00000E-01,7.71665E-02 -2,mea,2.00000E-01,-1.42098E-02 -2,sig,2.00000E-01,6.55799E-02 -2,wei,2.00000E-01,1.00671E-01 -2,mea,3.00000E-01,-1.85273E-02 -2,sig,3.00000E-01,5.90506E-02 -2,wei,3.00000E-01,8.98684E-02 -2,mea,4.00000E-01,-3.33534E-02 -2,sig,4.00000E-01,6.14286E-02 -2,wei,4.00000E-01,9.24267E-02 -2,mea,5.00000E-01,-4.67348E-02 -2,sig,5.00000E-01,6.25183E-02 -2,wei,5.00000E-01,9.27538E-02 -2,mea,7.50000E-01,-7.36116E-02 -2,sig,7.50000E-01,6.40390E-02 -2,wei,7.50000E-01,9.19485E-02 -2,mea,1.00000E+00,-1.06083E-01 -2,sig,1.00000E+00,6.72750E-02 -2,wei,1.00000E+00,9.55821E-02 -2,mea,1.20000E+00,-1.34875E-01 -2,sig,1.20000E+00,7.05112E-02 -2,wei,1.20000E+00,1.00016E-01 -2,mea,1.50000E+00,-1.73341E-01 -2,sig,1.50000E+00,7.44457E-02 -2,wei,1.50000E+00,1.05254E-01 -2,mea,1.75000E+00,-2.00336E-01 -2,sig,1.75000E+00,7.62373E-02 -2,wei,1.75000E+00,1.08059E-01 -2,mea,2.00000E+00,-2.24014E-01 -2,sig,2.00000E+00,7.75267E-02 -2,wei,2.00000E+00,1.10089E-01 -3,mea,0.00000E+00,-1.65314E-01 -3,sig,0.00000E+00,5.74972E-02 -3,wei,0.00000E+00,9.44290E-02 -3,mea,1.00000E-01,-1.66006E-01 -3,sig,1.00000E-01,1.11642E-01 -3,wei,1.00000E-01,1.59030E-01 -3,mea,2.00000E-01,-9.48517E-02 -3,sig,2.00000E-01,7.18796E-02 -3,wei,2.00000E-01,1.11015E-01 -3,mea,3.00000E-01,-7.11834E-02 -3,sig,3.00000E-01,4.29608E-02 -3,wei,3.00000E-01,6.46048E-02 -3,mea,4.00000E-01,-9.38980E-02 -3,sig,4.00000E-01,4.90745E-02 -3,wei,4.00000E-01,7.25510E-02 -3,mea,5.00000E-01,-1.12242E-01 -3,sig,5.00000E-01,5.28233E-02 -3,wei,5.00000E-01,7.72874E-02 -3,mea,7.50000E-01,-1.29345E-01 -3,sig,7.50000E-01,4.99822E-02 -3,wei,7.50000E-01,7.20953E-02 -3,mea,1.00000E+00,-1.63795E-01 -3,sig,1.00000E+00,5.46289E-02 -3,wei,1.00000E+00,7.81695E-02 -3,mea,1.20000E+00,-2.04071E-01 -3,sig,1.20000E+00,6.14616E-02 -3,wei,1.20000E+00,8.79262E-02 -3,mea,1.50000E+00,-2.41672E-01 -3,sig,1.50000E+00,6.43711E-02 -3,wei,1.50000E+00,9.20534E-02 -3,mea,1.75000E+00,-2.65439E-01 -3,sig,1.75000E+00,6.53606E-02 -3,wei,1.75000E+00,9.33715E-02 -3,mea,2.00000E+00,-2.88375E-01 -3,sig,2.00000E+00,6.67427E-02 -3,wei,2.00000E+00,9.51659E-02 -4,mea,0.00000E+00,-3.18954E-02 -4,sig,0.00000E+00,1.16063E-02 -4,wei,0.00000E+00,1.92389E-02 -4,mea,1.00000E-01,-2.88113E-02 -4,sig,1.00000E-01,2.12338E-02 -4,wei,1.00000E-01,3.05219E-02 -4,mea,2.00000E-01,-2.30658E-02 -4,sig,2.00000E-01,1.94915E-02 -4,wei,2.00000E-01,3.08076E-02 -4,mea,3.00000E-01,-1.65054E-02 -4,sig,3.00000E-01,1.08022E-02 -4,wei,3.00000E-01,1.68629E-02 -4,mea,4.00000E-01,-2.25289E-02 -4,sig,4.00000E-01,1.25640E-02 -4,wei,4.00000E-01,1.92102E-02 -4,mea,5.00000E-01,-2.89050E-02 -4,sig,5.00000E-01,1.43236E-02 -4,wei,5.00000E-01,2.14850E-02 -4,mea,7.50000E-01,-3.81923E-02 -4,sig,7.50000E-01,1.51747E-02 -4,wei,7.50000E-01,2.20886E-02 -4,mea,1.00000E+00,-5.14078E-02 -4,sig,1.00000E+00,1.74080E-02 -4,wei,1.00000E+00,2.49951E-02 -4,mea,1.20000E+00,-6.53943E-02 -4,sig,1.20000E+00,1.98967E-02 -4,wei,1.20000E+00,2.85189E-02 -4,mea,1.50000E+00,-7.86917E-02 -4,sig,1.50000E+00,2.10883E-02 -4,wei,1.50000E+00,3.01855E-02 -4,mea,1.75000E+00,-8.70097E-02 -4,sig,1.75000E+00,2.15185E-02 -4,wei,1.75000E+00,3.07591E-02 -4,mea,2.00000E+00,-9.49739E-02 -4,sig,2.00000E+00,2.20509E-02 -4,wei,2.00000E+00,3.14538E-02 +0,mea,0.00000E+00,-9.29668E-01 +0,sig,0.00000E+00,4.32737E-01 +0,wei,0.00000E+00,6.98037E-01 +0,mea,1.00000E-01,-3.80338E-01 +0,sig,1.00000E-01,4.27196E-01 +0,wei,1.00000E-01,6.41879E-01 +0,mea,2.00000E-01,-3.47287E-01 +0,sig,2.00000E-01,4.66126E-01 +0,wei,2.00000E-01,6.96365E-01 +0,mea,3.00000E-01,-4.18567E-01 +0,sig,3.00000E-01,4.92805E-01 +0,wei,3.00000E-01,7.31127E-01 +0,mea,4.00000E-01,-5.62448E-01 +0,sig,4.00000E-01,4.98308E-01 +0,wei,4.00000E-01,7.28994E-01 +0,mea,5.00000E-01,-6.78574E-01 +0,sig,5.00000E-01,5.04350E-01 +0,wei,5.00000E-01,7.28604E-01 +0,mea,7.50000E-01,-9.12077E-01 +0,sig,7.50000E-01,5.26693E-01 +0,wei,7.50000E-01,7.39335E-01 +0,mea,1.00000E+00,-1.14429E+00 +0,sig,1.00000E+00,5.30428E-01 +0,wei,1.00000E+00,7.40391E-01 +0,mea,1.20000E+00,-1.33296E+00 +0,sig,1.20000E+00,5.25780E-01 +0,wei,1.20000E+00,7.34782E-01 +0,mea,1.50000E+00,-1.57140E+00 +0,sig,1.50000E+00,5.26301E-01 +0,wei,1.50000E+00,7.35379E-01 +0,mea,1.75000E+00,-1.72860E+00 +0,sig,1.75000E+00,5.25499E-01 +0,wei,1.75000E+00,7.37947E-01 +0,mea,2.00000E+00,-1.86208E+00 +0,sig,2.00000E+00,5.24343E-01 +0,wei,2.00000E+00,7.39149E-01 +1,mea,0.00000E+00,-1.50655E-01 +1,sig,0.00000E+00,6.41197E-02 +1,wei,0.00000E+00,9.83912E-02 +1,mea,1.00000E-01,-7.36520E-02 +1,sig,1.00000E-01,6.60607E-02 +1,wei,1.00000E-01,9.55292E-02 +1,mea,2.00000E-01,-6.77681E-02 +1,sig,2.00000E-01,6.57327E-02 +1,wei,2.00000E-01,9.30591E-02 +1,mea,3.00000E-01,-7.63076E-02 +1,sig,3.00000E-01,7.07132E-02 +1,wei,3.00000E-01,1.01144E-01 +1,mea,4.00000E-01,-9.16502E-02 +1,sig,4.00000E-01,6.43130E-02 +1,wei,4.00000E-01,9.01342E-02 +1,mea,5.00000E-01,-1.00741E-01 +1,sig,5.00000E-01,6.01286E-02 +1,wei,5.00000E-01,8.34741E-02 +1,mea,7.50000E-01,-1.16363E-01 +1,sig,7.50000E-01,5.65848E-02 +1,wei,7.50000E-01,7.76414E-02 +1,mea,1.00000E+00,-1.20243E-01 +1,sig,1.00000E+00,4.66860E-02 +1,wei,1.00000E+00,6.40220E-02 +1,mea,1.20000E+00,-1.15754E-01 +1,sig,1.20000E+00,3.76726E-02 +1,wei,1.20000E+00,5.17623E-02 +1,mea,1.50000E+00,-1.06717E-01 +1,sig,1.50000E+00,2.90098E-02 +1,wei,1.50000E+00,3.99332E-02 +1,mea,1.75000E+00,-9.67242E-02 +1,sig,1.75000E+00,2.34706E-02 +1,wei,1.75000E+00,3.25577E-02 +1,mea,2.00000E+00,-8.71092E-02 +1,sig,2.00000E+00,1.93113E-02 +1,wei,2.00000E+00,2.69648E-02 +2,mea,0.00000E+00,-9.01792E-02 +2,sig,0.00000E+00,5.67684E-02 +2,wei,0.00000E+00,9.38628E-02 +2,mea,1.00000E-01,-2.34442E-02 +2,sig,1.00000E-01,4.94115E-02 +2,wei,1.00000E-01,7.70403E-02 +2,mea,2.00000E-01,-1.13990E-02 +2,sig,2.00000E-01,5.95834E-02 +2,wei,2.00000E-01,9.15870E-02 +2,mea,3.00000E-01,-1.85136E-02 +2,sig,3.00000E-01,5.90272E-02 +2,wei,3.00000E-01,8.98331E-02 +2,mea,4.00000E-01,-3.33400E-02 +2,sig,4.00000E-01,6.14124E-02 +2,wei,4.00000E-01,9.24026E-02 +2,mea,5.00000E-01,-4.66493E-02 +2,sig,5.00000E-01,6.24352E-02 +2,wei,5.00000E-01,9.26316E-02 +2,mea,7.50000E-01,-7.35870E-02 +2,sig,7.50000E-01,6.40219E-02 +2,wei,7.50000E-01,9.19241E-02 +2,mea,1.00000E+00,-1.05936E-01 +2,sig,1.00000E+00,6.71957E-02 +2,wei,1.00000E+00,9.54699E-02 +2,mea,1.20000E+00,-1.34727E-01 +2,sig,1.20000E+00,7.04441E-02 +2,wei,1.20000E+00,9.99210E-02 +2,mea,1.50000E+00,-1.73240E-01 +2,sig,1.50000E+00,7.44075E-02 +2,wei,1.50000E+00,1.05200E-01 +2,mea,1.75000E+00,-2.00284E-01 +2,sig,1.75000E+00,7.62198E-02 +2,wei,1.75000E+00,1.08034E-01 +2,mea,2.00000E+00,-2.23982E-01 +2,sig,2.00000E+00,7.75167E-02 +2,wei,2.00000E+00,1.10075E-01 +3,mea,0.00000E+00,-1.64948E-01 +3,sig,0.00000E+00,5.73704E-02 +3,wei,0.00000E+00,9.42208E-02 +3,mea,1.00000E-01,-1.65645E-01 +3,sig,1.00000E-01,1.11401E-01 +3,wei,1.00000E-01,1.58687E-01 +3,mea,2.00000E-01,-8.17219E-02 +3,sig,2.00000E-01,6.19957E-02 +3,wei,2.00000E-01,9.57391E-02 +3,mea,3.00000E-01,-7.11373E-02 +3,sig,3.00000E-01,4.29330E-02 +3,wei,3.00000E-01,6.45628E-02 +3,mea,4.00000E-01,-9.38567E-02 +3,sig,4.00000E-01,4.90531E-02 +3,wei,4.00000E-01,7.25192E-02 +3,mea,5.00000E-01,-1.11990E-01 +3,sig,5.00000E-01,5.27053E-02 +3,wei,5.00000E-01,7.71145E-02 +3,mea,7.50000E-01,-1.29283E-01 +3,sig,7.50000E-01,4.99585E-02 +3,wei,7.50000E-01,7.20612E-02 +3,mea,1.00000E+00,-1.63444E-01 +3,sig,1.00000E+00,5.45136E-02 +3,wei,1.00000E+00,7.80046E-02 +3,mea,1.20000E+00,-2.03715E-01 +3,sig,1.20000E+00,6.13560E-02 +3,wei,1.20000E+00,8.77753E-02 +3,mea,1.50000E+00,-2.41440E-01 +3,sig,1.50000E+00,6.43101E-02 +3,wei,1.50000E+00,9.19664E-02 +3,mea,1.75000E+00,-2.65324E-01 +3,sig,1.75000E+00,6.53327E-02 +3,wei,1.75000E+00,9.33318E-02 +3,mea,2.00000E+00,-2.88305E-01 +3,sig,2.00000E+00,6.67267E-02 +3,wei,2.00000E+00,9.51431E-02 +4,mea,0.00000E+00,-3.18269E-02 +4,sig,0.00000E+00,1.15815E-02 +4,wei,0.00000E+00,1.91978E-02 +4,mea,1.00000E-01,-2.87506E-02 +4,sig,1.00000E-01,2.11894E-02 +4,wei,1.00000E-01,3.04578E-02 +4,mea,2.00000E-01,-1.99217E-02 +4,sig,2.00000E-01,1.68356E-02 +4,wei,2.00000E-01,2.66092E-02 +4,mea,3.00000E-01,-1.64946E-02 +4,sig,3.00000E-01,1.07951E-02 +4,wei,3.00000E-01,1.68518E-02 +4,mea,4.00000E-01,-2.25189E-02 +4,sig,4.00000E-01,1.25584E-02 +4,wei,4.00000E-01,1.92018E-02 +4,mea,5.00000E-01,-2.88402E-02 +4,sig,5.00000E-01,1.42917E-02 +4,wei,5.00000E-01,2.14371E-02 +4,mea,7.50000E-01,-3.81743E-02 +4,sig,7.50000E-01,1.51676E-02 +4,wei,7.50000E-01,2.20783E-02 +4,mea,1.00000E+00,-5.12994E-02 +4,sig,1.00000E+00,1.73717E-02 +4,wei,1.00000E+00,2.49430E-02 +4,mea,1.20000E+00,-6.52817E-02 +4,sig,1.20000E+00,1.98629E-02 +4,wei,1.20000E+00,2.84704E-02 +4,mea,1.50000E+00,-7.86168E-02 +4,sig,1.50000E+00,2.10685E-02 +4,wei,1.50000E+00,3.01571E-02 +4,mea,1.75000E+00,-8.69724E-02 +4,sig,1.75000E+00,2.15094E-02 +4,wei,1.75000E+00,3.07461E-02 +4,mea,2.00000E+00,-9.49509E-02 +4,sig,2.00000E+00,2.20456E-02 +4,wei,2.00000E+00,3.14463E-02 diff --git a/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectrum-0-0.csv b/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectrum-0-0.csv index 0984ced51e20..0888f0723362 100644 --- a/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectrum-0-0.csv +++ b/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectrum-0-0.csv @@ -1,14 +1,14 @@ -#,,,,"generated_by='OpenQuake engine 3.22.0-git790b48a5bd', start_date='2024-10-11T09:38:42', checksum=3680515047, site_id=0, lon=0.0, lat=0.0, poe=0.002105" +#,,,,"generated_by='OpenQuake engine 3.22.0-gita7d73b72de', start_date='2024-10-21T14:14:53', checksum=3418894507, site_id=0, lon=0.0, lat=0.0, poe=0.002105" period,spec,mea,sig,wei -0.00000E+00,2.56624E-01,-1.36014E+00,6.28898E-01,1.00466E+00 -1.00000E-01,5.11991E-01,-6.69448E-01,6.79902E-01,1.00587E+00 -2.00000E-01,5.94292E-01,-5.20384E-01,6.75928E-01,1.00555E+00 -3.00000E-01,5.34311E-01,-6.26776E-01,6.81145E-01,1.00380E+00 -4.00000E-01,4.28009E-01,-8.48610E-01,6.90463E-01,1.00486E+00 -5.00000E-01,3.56945E-01,-1.03017E+00,6.98470E-01,1.00378E+00 -7.50000E-01,2.49848E-01,-1.38690E+00,7.15721E-01,1.00380E+00 -1.00000E+00,1.74268E-01,-1.74716E+00,7.19517E-01,1.00472E+00 -1.20000E+00,1.31091E-01,-2.03186E+00,7.18244E-01,1.00481E+00 -1.50000E+00,9.28905E-02,-2.37633E+00,7.16829E-01,1.00381E+00 -1.75000E+00,7.33907E-02,-2.61196E+00,7.14881E-01,1.00445E+00 -2.00000E+00,5.99879E-02,-2.81361E+00,7.12920E-01,1.00404E+00 +0.00000E+00,2.56708E-01,-1.35982E+00,6.28756E-01,1.00443E+00 +1.00000E-01,5.12698E-01,-6.68068E-01,6.78621E-01,1.00398E+00 +2.00000E-01,5.94820E-01,-5.19497E-01,6.74916E-01,1.00404E+00 +3.00000E-01,5.34335E-01,-6.26732E-01,6.81103E-01,1.00374E+00 +4.00000E-01,4.28391E-01,-8.47718E-01,6.89812E-01,1.00392E+00 +5.00000E-01,3.56908E-01,-1.03028E+00,6.98534E-01,1.00387E+00 +7.50000E-01,2.49862E-01,-1.38685E+00,7.15694E-01,1.00377E+00 +1.00000E+00,1.74214E-01,-1.74747E+00,7.19635E-01,1.00489E+00 +1.20000E+00,1.31462E-01,-2.02904E+00,7.17316E-01,1.00351E+00 +1.50000E+00,9.29776E-02,-2.37540E+00,7.16565E-01,1.00344E+00 +1.75000E+00,7.33086E-02,-2.61308E+00,7.15169E-01,1.00485E+00 +2.00000E+00,5.98542E-02,-2.81584E+00,7.13451E-01,1.00478E+00 diff --git a/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectrum-0-1.csv b/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectrum-0-1.csv index 80b4006a28b6..9de0a6b5035d 100644 --- a/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectrum-0-1.csv +++ b/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectrum-0-1.csv @@ -1,14 +1,14 @@ -#,,,,"generated_by='OpenQuake engine 3.22.0-gitdc73f6d9f8', start_date='2024-10-11T15:49:36', checksum=3680515047, site_id=0, lon=0.0, lat=0.0, poe=0.000404" +#,,,,"generated_by='OpenQuake engine 3.22.0-gita7d73b72de', start_date='2024-10-21T14:14:30', checksum=3418894507, site_id=0, lon=0.0, lat=0.0, poe=0.000404" period,spec,mea,sig,wei -0.00000E+00,2.92722E-01,-1.22853E+00,6.28828E-01,1.00282E+00 -1.00000E-01,5.71492E-01,-5.59505E-01,6.75230E-01,1.00358E+00 -2.00000E-01,5.53432E-01,-5.91616E-01,9.42430E-01,1.39972E+00 -3.00000E-01,6.13892E-01,-4.87936E-01,6.81318E-01,1.00427E+00 -4.00000E-01,5.00194E-01,-6.92760E-01,6.90198E-01,1.00423E+00 -5.00000E-01,4.21833E-01,-8.63146E-01,6.96883E-01,1.00289E+00 -7.50000E-01,3.07493E-01,-1.17930E+00,7.14596E-01,1.00408E+00 -1.00000E+00,2.18215E-01,-1.52228E+00,7.17407E-01,1.00335E+00 -1.20000E+00,1.66487E-01,-1.79284E+00,7.15684E-01,1.00257E+00 -1.50000E+00,1.19965E-01,-2.12056E+00,7.16171E-01,1.00347E+00 -1.75000E+00,9.69497E-02,-2.33356E+00,7.12526E-01,1.00267E+00 -2.00000E+00,8.06514E-02,-2.51762E+00,7.09981E-01,1.00225E+00 +0.00000E+00,2.92756E-01,-1.22842E+00,6.28773E-01,1.00273E+00 +1.00000E-01,5.71716E-01,-5.59113E-01,6.74806E-01,1.00295E+00 +2.00000E-01,6.71284E-01,-3.98563E-01,6.75421E-01,1.00278E+00 +3.00000E-01,6.14390E-01,-4.87126E-01,6.80352E-01,1.00284E+00 +4.00000E-01,5.00798E-01,-6.91552E-01,6.89139E-01,1.00268E+00 +5.00000E-01,4.21884E-01,-8.63026E-01,6.96795E-01,1.00277E+00 +7.50000E-01,3.08040E-01,-1.17753E+00,7.13618E-01,1.00271E+00 +1.00000E+00,2.18443E-01,-1.52123E+00,7.16952E-01,1.00271E+00 +1.20000E+00,1.66492E-01,-1.79281E+00,7.15674E-01,1.00256E+00 +1.50000E+00,1.20308E-01,-2.11770E+00,7.15270E-01,1.00221E+00 +1.75000E+00,9.70647E-02,-2.33238E+00,7.12186E-01,1.00220E+00 +2.00000E+00,8.06436E-02,-2.51772E+00,7.10007E-01,1.00228E+00 diff --git a/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectrum-1-0.csv b/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectrum-1-0.csv index 27628e8cd90f..14cb90410c15 100644 --- a/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectrum-1-0.csv +++ b/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectrum-1-0.csv @@ -1,14 +1,14 @@ -#,,,,"generated_by='OpenQuake engine 3.22.0-gitdc73f6d9f8', start_date='2024-10-11T15:49:36', checksum=3680515047, site_id=1, lon=0.0, lat=0.1, poe=0.002105" +#,,,,"generated_by='OpenQuake engine 3.22.0-gita7d73b72de', start_date='2024-10-21T14:14:53', checksum=3418894507, site_id=1, lon=0.0, lat=0.1, poe=0.002105" period,spec,mea,sig,wei -0.00000E+00,2.37022E-01,-1.43960E+00,6.24541E-01,1.00644E+00 -1.00000E-01,4.78237E-01,-7.37650E-01,6.78264E-01,1.00500E+00 -2.00000E-01,5.53362E-01,-5.91743E-01,6.70392E-01,1.00433E+00 -3.00000E-01,5.00100E-01,-6.92948E-01,6.78597E-01,1.00603E+00 -4.00000E-01,4.02128E-01,-9.10986E-01,6.87510E-01,1.00562E+00 -5.00000E-01,3.36490E-01,-1.08919E+00,6.96961E-01,1.00570E+00 -7.50000E-01,2.37199E-01,-1.43886E+00,7.15332E-01,1.00536E+00 -1.00000E+00,1.67911E-01,-1.78432E+00,7.18059E-01,1.00405E+00 -1.20000E+00,1.26679E-01,-2.06610E+00,7.17145E-01,1.00434E+00 -1.50000E+00,8.97778E-02,-2.41042E+00,7.16974E-01,1.00477E+00 -1.75000E+00,7.14826E-02,-2.63830E+00,7.14089E-01,1.00398E+00 -2.00000E+00,5.86766E-02,-2.83572E+00,7.12022E-01,1.00332E+00 +0.00000E+00,2.37461E-01,-1.43775E+00,6.23763E-01,1.00518E+00 +1.00000E-01,4.78460E-01,-7.37182E-01,6.77858E-01,1.00440E+00 +2.00000E-01,5.53312E-01,-5.91833E-01,6.70487E-01,1.00447E+00 +3.00000E-01,5.00797E-01,-6.91554E-01,6.77353E-01,1.00419E+00 +4.00000E-01,4.02669E-01,-9.09641E-01,6.86574E-01,1.00425E+00 +5.00000E-01,3.37062E-01,-1.08749E+00,6.95951E-01,1.00425E+00 +7.50000E-01,2.37465E-01,-1.43774E+00,7.14818E-01,1.00464E+00 +1.00000E+00,1.67890E-01,-1.78445E+00,7.18105E-01,1.00412E+00 +1.20000E+00,1.26723E-01,-2.06575E+00,7.17032E-01,1.00418E+00 +1.50000E+00,8.98647E-02,-2.40945E+00,7.16704E-01,1.00439E+00 +1.75000E+00,7.13212E-02,-2.64056E+00,7.14664E-01,1.00479E+00 +2.00000E+00,5.82346E-02,-2.84328E+00,7.13808E-01,1.00583E+00 diff --git a/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectrum-1-1.csv b/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectrum-1-1.csv index 79ed615b996e..8979b1963607 100644 --- a/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectrum-1-1.csv +++ b/openquake/qa_tests_data/postproc/case_median_spectrum/expected/median_spectrum-1-1.csv @@ -1,14 +1,14 @@ -#,,,,"generated_by='OpenQuake engine 3.22.0-gitdc73f6d9f8', start_date='2024-10-11T15:49:36', checksum=3680515047, site_id=1, lon=0.0, lat=0.1, poe=0.000404" +#,,,,"generated_by='OpenQuake engine 3.22.0-gita7d73b72de', start_date='2024-10-21T14:14:53', checksum=3418894507, site_id=1, lon=0.0, lat=0.1, poe=0.000404" period,spec,mea,sig,wei -0.00000E+00,2.54185E-01,-1.36969E+00,6.23647E-01,1.00544E+00 -1.00000E-01,5.10081E-01,-6.73187E-01,6.76556E-01,1.00552E+00 -2.00000E-01,5.49471E-01,-5.98799E-01,7.54156E-01,1.12904E+00 -3.00000E-01,5.48079E-01,-6.01335E-01,6.76603E-01,1.00401E+00 -4.00000E-01,4.47490E-01,-8.04100E-01,6.85873E-01,1.00359E+00 -5.00000E-01,3.79633E-01,-9.68549E-01,6.95095E-01,1.00497E+00 -7.50000E-01,2.80845E-01,-1.26995E+00,7.12673E-01,1.00339E+00 -1.00000E+00,2.04365E-01,-1.58785E+00,7.17313E-01,1.00440E+00 -1.20000E+00,1.56455E-01,-1.85499E+00,7.16043E-01,1.00401E+00 -1.50000E+00,1.13828E-01,-2.17306E+00,7.15610E-01,1.00336E+00 -1.75000E+00,9.26689E-02,-2.37872E+00,7.12262E-01,1.00294E+00 -2.00000E+00,7.75434E-02,-2.55692E+00,7.10072E-01,1.00296E+00 +0.00000E+00,2.54800E-01,-1.36728E+00,6.22577E-01,1.00371E+00 +1.00000E-01,5.10773E-01,-6.71830E-01,6.75259E-01,1.00359E+00 +2.00000E-01,5.89726E-01,-5.28098E-01,6.70273E-01,1.00336E+00 +3.00000E-01,5.48252E-01,-6.01020E-01,6.76274E-01,1.00352E+00 +4.00000E-01,4.47618E-01,-8.03814E-01,6.85645E-01,1.00325E+00 +5.00000E-01,3.80300E-01,-9.66794E-01,6.93911E-01,1.00326E+00 +7.50000E-01,2.80976E-01,-1.26948E+00,7.12426E-01,1.00304E+00 +1.00000E+00,2.04904E-01,-1.58521E+00,7.16195E-01,1.00283E+00 +1.20000E+00,1.56854E-01,-1.85244E+00,7.15115E-01,1.00271E+00 +1.50000E+00,1.14016E-01,-2.17141E+00,7.15097E-01,1.00264E+00 +1.75000E+00,9.27443E-02,-2.37791E+00,7.12032E-01,1.00262E+00 +2.00000E+00,7.75815E-02,-2.55643E+00,7.09943E-01,1.00278E+00 diff --git a/openquake/qa_tests_data/postproc/case_median_spectrum/job2.ini b/openquake/qa_tests_data/postproc/case_median_spectrum/job2.ini index 9f32d16199ad..668d335a95fa 100644 --- a/openquake/qa_tests_data/postproc/case_median_spectrum/job2.ini +++ b/openquake/qa_tests_data/postproc/case_median_spectrum/job2.ini @@ -32,18 +32,18 @@ source_model_logic_tree_file = ssclt.xml gsim_logic_tree_file = gmclt.xml investigation_time = 1.0 intensity_measure_types_and_levels = { - "PGA": logscale(0.005, 2.13, 60), - "SA(0.1)": logscale(0.005, 2.13, 60), - "SA(0.2)": logscale(0.005, 2.13, 60), - "SA(0.3)": logscale(0.005, 2.13, 60), - "SA(0.4)": logscale(0.005, 2.13, 60), - "SA(0.5)": logscale(0.005, 2.13, 60), - "SA(0.75)": logscale(0.005, 2.13, 60), - "SA(1.0)": logscale(0.005, 2.13, 60), - "SA(1.2)": logscale(0.005, 2.13, 60), - "SA(1.5)": logscale(0.005, 2.13, 60), - "SA(1.75)": logscale(0.005, 2.13, 60), - "SA(2.0)": logscale(0.005, 2.13, 60)} + "PGA": linscale(0.05, 2.13, 60), + "SA(0.1)": linscale(0.05, 2.5, 60), + "SA(0.2)": linscale(0.05, 4.00, 60), + "SA(0.3)": linscale(0.05, 3.00, 60), + "SA(0.4)": linscale(0.05, 2.13, 60), + "SA(0.5)": linscale(0.05, 2.13, 60), + "SA(0.75)": linscale(0.05, 2.13, 60), + "SA(1.0)": linscale(0.05, 2.13, 60), + "SA(1.2)": linscale(0.05, 1.0, 60), + "SA(1.5)": linscale(0.05, 1.0, 60), + "SA(1.75)": linscale(0.05, 1.0, 60), + "SA(2.0)": linscale(0.05, 1.0, 60)} truncation_level = 5.000 maximum_distance = 200.0 From 2125e8b0f96ea734e3550476f378a2bd1b358cc4 Mon Sep 17 00:00:00 2001 From: Marco Pagani Date: Mon, 21 Oct 2024 17:08:44 +0200 Subject: [PATCH 6/6] Addressing review comment --- openquake/hazardlib/valid.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openquake/hazardlib/valid.py b/openquake/hazardlib/valid.py index 0de6eea1e7be..b0086fb120dc 100644 --- a/openquake/hazardlib/valid.py +++ b/openquake/hazardlib/valid.py @@ -982,14 +982,14 @@ def dictionary(value): for key, val in dic.items(): try: has_logscale = (val[0] == 'logscale') - except Exception: # no val[0] + except IndexError: # no val[0] continue if has_logscale: dic[key] = list(logscale(*val[1:])) try: has_linscale = (val[0] == 'linscale') - except Exception: # no val[0] + except IndexError: # no val[0] continue if has_linscale: dic[key] = list(linscale(*val[1:]))