mirror of
				https://github.com/fjosw/pyerrors.git
				synced 2025-11-04 01:25:46 +01:00 
			
		
		
		
	Merge branch 'develop' into documentation
This commit is contained in:
		
				commit
				
					
						d327b858ee
					
				
			
		
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -218,7 +218,9 @@ class Corr:
 | 
				
			||||||
        if self.T % 2 != 0:
 | 
					        if self.T % 2 != 0:
 | 
				
			||||||
            raise Exception("Can not symmetrize odd T")
 | 
					            raise Exception("Can not symmetrize odd T")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if not all([o.is_zero_within_error(3) for o in self.content[0]]):
 | 
					        test = 1 * self
 | 
				
			||||||
 | 
					        test.gamma_method()
 | 
				
			||||||
 | 
					        if not all([o.is_zero_within_error(3) for o in test.content[0]]):
 | 
				
			||||||
            warnings.warn("Correlator does not seem to be anti-symmetric around x0=0.", RuntimeWarning)
 | 
					            warnings.warn("Correlator does not seem to be anti-symmetric around x0=0.", RuntimeWarning)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        newcontent = [self.content[0]]
 | 
					        newcontent = [self.content[0]]
 | 
				
			||||||
| 
						 | 
					@ -457,6 +459,7 @@ class Corr:
 | 
				
			||||||
        t_slices = []
 | 
					        t_slices = []
 | 
				
			||||||
        for x0, t_slice in enumerate((self - T_partner).content):
 | 
					        for x0, t_slice in enumerate((self - T_partner).content):
 | 
				
			||||||
            if t_slice is not None:
 | 
					            if t_slice is not None:
 | 
				
			||||||
 | 
					                t_slice.gamma_method()
 | 
				
			||||||
                if not t_slice[0].is_zero_within_error(5):
 | 
					                if not t_slice[0].is_zero_within_error(5):
 | 
				
			||||||
                    t_slices.append(x0)
 | 
					                    t_slices.append(x0)
 | 
				
			||||||
        if t_slices:
 | 
					        if t_slices:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue