I tried to calculate a move to a hkl position after manually setting a UB matrix I copied from a nexus file of a real experiment. The exception output string did not have the calculated position, but a pointer to the position object instead. I assume it was supposed to be Eulerian angles.
>>> pos(hkl, [0.2,-0.2,4])
Traceback (most recent call last):
File "<blender_console>", line 1, in <module>
File "C:\Users\axw86756\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\i16sim\DiffcalcEmulator.py", line 365, in pos
pos, virtual_angles = self.pos_from_hkl(val)
File "C:\Users\axw86756\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\i16sim\DiffcalcEmulator.py", line 256, in pos_from_hkl
for pos, virtual_angles in self.hklcalc.get_position(hkl[0], hkl[1], hkl[2], self.wl):
File "C:\Users\axw86756\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\i16sim\diffcalc\hkl\calc.py", line 200, in get_position
self._verify_pos_map_to_hkl(h, k, l, wavelength, pos)
File "C:\Users\axw86756\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\i16sim\diffcalc\hkl\calc.py", line 1756, in _verify_pos_map_to_hkl
raise DiffcalcException(s)
i16sim.diffcalc.util.DiffcalcException:
***********************************************************************************************************************************************
* ERROR: The angles calculated for hkl=(0.200000,-0.200000,4.000000) were <i16sim.diffcalc.hkl.geometry.Position object at 0x0000028E4793BD90>.
* Converting these angles back to hkl resulted in hkl=(0.203564,-0.203564,4.071290)
***********************************************************************************************************************************************