From 0f440d1d6e51dfb68101767beaefae395ff682b8 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Tue, 20 Dec 2022 10:16:07 +0100 Subject: [PATCH] fix: reapplied changes to hadrons.get_cnfg_number. --- pyerrors/input/hadrons.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pyerrors/input/hadrons.py b/pyerrors/input/hadrons.py index 0892bf57..dc8429e1 100644 --- a/pyerrors/input/hadrons.py +++ b/pyerrors/input/hadrons.py @@ -1,5 +1,4 @@ import os -import warnings from collections import Counter import h5py from pathlib import Path @@ -48,9 +47,8 @@ def _get_files(path, filestem, idl): idx = range(cnfg_numbers[0], cnfg_numbers[-1] + dc[0], dc[0]) elif idl: idx = idl - warnings.warn("Configurations are not evenly spaced.", RuntimeWarning) else: - raise Exception("Configurations are not evenly spaced.") + raise Exception("Configurations are not evenly spaced. Provide an idl if you want to proceed with this set of configurations.") return filtered_files, idx