Iterating over dic maps and cropping (with update_homog_points=True) causes the DIC map to be repeatedly cropped
i.e.
for inc, dic_map in exp.iter_over_maps('hrdic'):
dic_map.link_ebsd_map(ebsd_map, transform_type="affine")
dic_map.set_crop(left=100,right=100,top=100,bottom=100,update_homog_points=True)
will cause an incorrect update of the homologous points every increment, when we only want to do this once.
Something like this works for now but it would be good to catch this inside defdap
for inc, dic_map in exp.iter_over_maps('hrdic'):
dic_map.link_ebsd_map(ebsd_map, transform_type="affine")
if inc == 0:
dic_map.set_crop(left=100,right=100,top=100,bottom=100,update_homog_points=True)
else:
dic_map.set_crop(left=100,right=100,top=100,bottom=100)