Restore linking of loaded data to instrument (#430)
-
The compatibility of instrument with data involves comparison of axis. This was disabled by me months ago and I do not remember the reason. But the current comparison does not use native data.
-
For some reason wavelength value
beam->wavelength()
, obtained fromstd::shared_ptr<Beam> beam = beamItem()->createBeam();
returned rubbish values as if it wasn't initialized. ButInBeam()
function returns properly initialized object which is broken while creating shared pointer. So I removed usingstd::shared_ptr<Beam>
inSpecularInstrumentItem::createCoordSystem()
the more that it was unnecessary here.
This resolves #430 (closed)