From 0b2f90b2f484e1a2232be0e570240b6510e633ec Mon Sep 17 00:00:00 2001 From: fjosw Date: Fri, 4 Mar 2022 17:06:59 +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 83766a91..35eda827 100644 --- a/docs/pyerrors/input/hadrons.html +++ b/docs/pyerrors/input/hadrons.html @@ -91,6 +91,7 @@
View Source
import os
+import warnings
 from collections import Counter
 import h5py
 import numpy as np
@@ -137,7 +138,8 @@
     if len(dc) == 1:
         idx = range(cnfg_numbers[0], cnfg_numbers[-1] + dc[0], dc[0])
     else:
-        raise Exception('Configurations are not evenly spaced.')
+        idx = idl
+        warnings.warn("Configurations are not evenly spaced.", RuntimeWarning)
 
     return filtered_files, idx