Skip to content

Restore linking of loaded data to instrument (#430)

Mikhail Svechnikov requested to merge i430 into main
  1. 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.

  2. For some reason wavelength value beam->wavelength(), obtained from std::shared_ptr<Beam> beam = beamItem()->createBeam(); returned rubbish values as if it wasn't initialized. But InBeam() function returns properly initialized object which is broken while creating shared pointer. So I removed using std::shared_ptr<Beam> in SpecularInstrumentItem::createCoordSystem() the more that it was unnecessary here.

This resolves #430 (closed)

Merge request reports