mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
fix: reapplied changes to hadrons.get_cnfg_number.
This commit is contained in:
parent
ed0b7cad3f
commit
0f440d1d6e
1 changed files with 1 additions and 3 deletions
|
@ -1,5 +1,4 @@
|
||||||
import os
|
import os
|
||||||
import warnings
|
|
||||||
from collections import Counter
|
from collections import Counter
|
||||||
import h5py
|
import h5py
|
||||||
from pathlib import Path
|
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])
|
idx = range(cnfg_numbers[0], cnfg_numbers[-1] + dc[0], dc[0])
|
||||||
elif idl:
|
elif idl:
|
||||||
idx = idl
|
idx = idl
|
||||||
warnings.warn("Configurations are not evenly spaced.", RuntimeWarning)
|
|
||||||
else:
|
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
|
return filtered_files, idx
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue