From 6b1f10f34e8c08b25b1688e854da94ca6cd7d549 Mon Sep 17 00:00:00 2001 From: fjosw Date: Fri, 4 Mar 2022 17:26:55 +0000 Subject: [PATCH] Documentation updated --- docs/pyerrors/input/hadrons.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/pyerrors/input/hadrons.html b/docs/pyerrors/input/hadrons.html index 35eda827..7b3292c0 100644 --- a/docs/pyerrors/input/hadrons.html +++ b/docs/pyerrors/input/hadrons.html @@ -137,9 +137,11 @@ raise Exception("Unsorted files") if len(dc) == 1: idx = range(cnfg_numbers[0], cnfg_numbers[-1] + dc[0], dc[0]) - else: + elif idl: idx = idl warnings.warn("Configurations are not evenly spaced.", RuntimeWarning) + else: + raise Exception("Configurations are not evenly spaced.") return filtered_files, idx