Yodamerge fails when merging Scatter and Historams
Hi,
I get random segmentation faults in yodamerge when merging a Scatter1D
and a Histo1D
(e.g. histo1d.yoda and scatter2d.yoda):
$ yodamerge scatter2d.yoda histo1d.yoda
WARNING: cannot merge mismatched analysis object types for path /ATLAS_2014_I1319490/d22-x01-y01: converting to Scatter2Ds
WARNING: Scatter2D /ATLAS_2014_I1319490/d22-x01-y01 merge assumes asymptotic statistics and equal run sizes
BEGIN YODA_SCATTER2D_V2 /ATLAS_2014_I1319490/d22-x01-y01
Path: /ATLAS_2014_I1319490/d22-x01-y01
Title: ~
Type: Scatter2D
---
# xval xerr- xerr+ yval yerr- yerr+
2.500000e+02 1.000000e+01 1.000000e+01 1.317263e-05 9.949511e-07 9.949511e-07
2.700000e+02 1.000000e+01 1.000000e+01 1.438879e-04 5.535302e-05 5.535302e-05
2.900000e+02 1.000000e+01 1.000000e+01 2.221414e-04 7.397900e-06 7.397900e-06
3.100000e+02 1.000000e+01 1.000000e+01 3.921806e-04 1.203731e-05 1.203731e-05
3.300000e+02 1.000000e+01 1.000000e+01 5.942185e-04 2.647181e-05 2.647181e-05
3.500000e+02 1.000000e+01 1.000000e+01 7.341360e-04 2.745123e-05 2.745123e-05
3.700000e+02 1.000000e+01 1.000000e+01 8.440707e-04 3.486986e-05 3.486986e-05
3.900000e+02 1.000000e+01 1.000000e+01 8.772851e-04 2.854922e-05 2.854922e-05
4.100000e+02 1.000000e+01 1.000000e+01 8.994284e-04 2.628181e-05 2.628181e-05
4.300000e+02 1.000000e+01 1.000000e+01 9.121339e-04 2.144725e-05 2.144725e-05
4.500000e+02 1.000000e+01 1.000000e+01 8.940426e-04 2.196220e-05 2.196220e-05
4.700000e+02 1.000000e+01 1.000000e+01 8.434136e-04 1.891511e-05 1.891511e-05
4.900000e+02 1.000000e+01 1.000000e+01 8.721732e-04 3.338199e-05 3.338199e-05
5.150000e+02 1.500000e+01 1.500000e+01 7.607004e-04 2.884076e-05 2.884076e-05
5.600000e+02 3.000000e+01 3.000000e+01 6.456280e-04 7.670807e-06 7.670807e-06
6.350000e+02 4.500000e+01 4.500000e+01 4.914878e-04 8.380421e-06 8.380421e-06
8.400000e+02 1.600000e+02 1.600000e+02 2.021666e-04 2.115347e-06 2.115347e-06
1.200000e+03 2.000000e+02 2.000000e+02 3.838843e-05 4.701556e-07 4.701556e-07
1.700000e+03 3.000000e+02 3.000000e+02 4.484936e-06 7.180190e-08 7.180190e-08
END YODA_SCATTER2D_V2
$ yodamerge scatter2d.yoda histo1d.yoda
WARNING: cannot merge mismatched analysis object types for path /ATLAS_2014_I1319490/d22-x01-y01: converting to Scatter2Ds
WARNING: Scatter2D /ATLAS_2014_I1319490/d22-x01-y01 merge assumes asymptotic statistics and equal run sizes
Segmentation fault (core dumped)
With the --type-mismatch-mode first
flags it works every time, independent of the order of the input. I have no idea how and why. Attaching gdb also fixes the problem, which makes it a bit hard to debug. I completely reinstalled yoda and upgraded to the newest version 1.8.3. Maybe someone else can test/confirm this?
Cheers,
Marian
Edited by Marian Heil