mirror of
				https://github.com/fjosw/pyerrors.git
				synced 2025-10-31 15:55:45 +01:00 
			
		
		
		
	Merge branch 'develop' into documentation
This commit is contained in:
		
				commit
				
					
						70092e327b
					
				
			
		
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -1,6 +1,7 @@ | ||||||
| import os | import os | ||||||
| import h5py | import h5py | ||||||
| import numpy as np | import numpy as np | ||||||
|  | from collections import Counter | ||||||
| from ..obs import Obs, CObs | from ..obs import Obs, CObs | ||||||
| from ..correlators import Corr | from ..correlators import Corr | ||||||
| 
 | 
 | ||||||
|  | @ -32,6 +33,10 @@ def _get_files(path, filestem, idl): | ||||||
|             filtered_files.append(line) |             filtered_files.append(line) | ||||||
|             cnfg_numbers.append(no) |             cnfg_numbers.append(no) | ||||||
| 
 | 
 | ||||||
|  |     if idl: | ||||||
|  |         if Counter(list(idl)) != Counter(cnfg_numbers): | ||||||
|  |             raise Exception("Not all configurations specified in idl found (" + str(list(Counter(list(idl)) - Counter(cnfg_numbers))) + "missing)") | ||||||
|  | 
 | ||||||
|     # Check that configurations are evenly spaced |     # Check that configurations are evenly spaced | ||||||
|     dc = np.unique(np.diff(cnfg_numbers)) |     dc = np.unique(np.diff(cnfg_numbers)) | ||||||
|     if np.any(dc < 0): |     if np.any(dc < 0): | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue