new version of spinbox
added missing logging module import
set __previous_pos_dict just after getting diffractometer object