mirror of
				https://github.com/fjosw/pyerrors.git
				synced 2025-11-04 01:25:46 +01:00 
			
		
		
		
	fix: corrected bug that prevented combined fits with multiple x-obs in some cases (#241)
* fix: corrected bug that prevented combined fits with multiple x-obs in some cases * made test more complex * [Fix] Slightly increase tolerance for matrix function test. * Adapt test_merge_idx to compare lists --------- Co-authored-by: Simon Kuberski <simon.kuberski@cern.ch> Co-authored-by: Fabian Joswig <fjosw@users.noreply.github.com>
This commit is contained in:
		
					parent
					
						
							
								1d6f7f65c0
							
						
					
				
			
			
				commit
				
					
						4b1bb0872a
					
				
			
		
					 4 changed files with 21 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -276,10 +276,10 @@ def test_matrix_functions():
 | 
			
		|||
    for (i, j), entry in np.ndenumerate(check_inv):
 | 
			
		||||
        entry.gamma_method()
 | 
			
		||||
        if(i == j):
 | 
			
		||||
            assert math.isclose(entry.value, 1.0, abs_tol=1e-9), 'value ' + str(i) + ',' + str(j) + ' ' + str(entry.value)
 | 
			
		||||
            assert math.isclose(entry.value, 1.0, abs_tol=2e-9), 'value ' + str(i) + ',' + str(j) + ' ' + str(entry.value)
 | 
			
		||||
        else:
 | 
			
		||||
            assert math.isclose(entry.value, 0.0, abs_tol=1e-9), 'value ' + str(i) + ',' + str(j) + ' ' + str(entry.value)
 | 
			
		||||
        assert math.isclose(entry.dvalue, 0.0, abs_tol=1e-9), 'dvalue ' + str(i) + ',' + str(j) + ' ' + str(entry.dvalue)
 | 
			
		||||
            assert math.isclose(entry.value, 0.0, abs_tol=2e-9), 'value ' + str(i) + ',' + str(j) + ' ' + str(entry.value)
 | 
			
		||||
        assert math.isclose(entry.dvalue, 0.0, abs_tol=2e-9), 'dvalue ' + str(i) + ',' + str(j) + ' ' + str(entry.dvalue)
 | 
			
		||||
 | 
			
		||||
    # Check Cholesky decomposition
 | 
			
		||||
    sym = np.dot(matrix, matrix.T)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue