mirror of
				https://github.com/fjosw/pyerrors.git
				synced 2025-10-31 07:45:45 +01:00 
			
		
		
		
	feat: hadrons npr input now returns rank-n tensors instead of 2D matrices
This commit is contained in:
		
					parent
					
						
							
								4c8d758889
							
						
					
				
			
			
				commit
				
					
						b715aa0c22
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -167,7 +167,7 @@ def read_ExternalLeg_hd5(path, filestem, ens_id, idl=None): | |||
|         imag = Obs([rolled_array[si, sj, ci, cj].imag], [ens_id], idl=[idx]) | ||||
|         matrix[si, sj, ci, cj] = CObs(real, imag) | ||||
| 
 | ||||
|     return Npr_matrix(matrix.swapaxes(1, 2).reshape((12, 12), order='F'), mom_in=mom) | ||||
|     return Npr_matrix(matrix, mom_in=mom) | ||||
| 
 | ||||
| 
 | ||||
| def read_Bilinear_hd5(path, filestem, ens_id, idl=None): | ||||
|  | @ -219,7 +219,7 @@ def read_Bilinear_hd5(path, filestem, ens_id, idl=None): | |||
|             imag = Obs([rolled_array[si, sj, ci, cj].imag], [ens_id], idl=[idx]) | ||||
|             matrix[si, sj, ci, cj] = CObs(real, imag) | ||||
| 
 | ||||
|         result_dict[key] = Npr_matrix(matrix.swapaxes(1, 2).reshape((12, 12), order='F'), mom_in=mom_in, mom_out=mom_out) | ||||
|         result_dict[key] = Npr_matrix(matrix, mom_in=mom_in, mom_out=mom_out) | ||||
| 
 | ||||
|     return result_dict | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue