mirror of
				https://github.com/fjosw/pyerrors.git
				synced 2025-10-30 23:35:45 +01:00 
			
		
		
		
	Merge branch 'develop' into documentation
This commit is contained in:
		
				commit
				
					
						7e3def9364
					
				
			
		
					 1 changed files with 5 additions and 2 deletions
				
			
		|  | @ -78,8 +78,11 @@ class Obs: | ||||||
|             if name_length > 1: |             if name_length > 1: | ||||||
|                 if name_length != len(set(names)): |                 if name_length != len(set(names)): | ||||||
|                     raise Exception('names are not unique.') |                     raise Exception('names are not unique.') | ||||||
|             if not all(isinstance(x, str) for x in names): |                 if not all(isinstance(x, str) for x in names): | ||||||
|                 raise TypeError('All names have to be strings.') |                     raise TypeError('All names have to be strings.') | ||||||
|  |             else: | ||||||
|  |                 if not isinstance(names[0], str): | ||||||
|  |                     raise TypeError('All names have to be strings.') | ||||||
|             if min(len(x) for x in samples) <= 4: |             if min(len(x) for x in samples) <= 4: | ||||||
|                 raise Exception('Samples have to have at least 5 entries.') |                 raise Exception('Samples have to have at least 5 entries.') | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue