We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bba6de5 commit 29b0b76Copy full SHA for 29b0b76
tools/Calculation.py
@@ -96,9 +96,10 @@ def combine_complex_results(result1, result2):
96
for sample in samples:
97
results = []
98
for entry1, entry2 in zip(result1[sample], result2[sample]):
99
- value1, error1 = entry1
100
- value2, error2 = entry2
101
- results.append( ( value1 + value2, sqrt( error1**2 + error2**2 ) ) )
+ v1 = ufloat(entry1[0], entry1[1])
+ v2 = ufloat(entry2[0], entry2[1])
+ s = v1 + v2
102
+ results.append( ( s.nominal_value, s.std_dev ) )
103
combined_result[sample] = results
104
return combined_result
105
0 commit comments