pyxem / pyxem-demos

Examples and tutorials of multi-dimensional diffraction microscopy workflows using pyxem.
30 stars 38 forks source link

Azimuthal Integral Tutorial - Case 2 not working #58

Open andy-bridger opened 3 years ago

andy-bridger commented 3 years ago

npt_rad no longer keyword other issues associated with dp.get_azimuthal_integral1d(npt_rad =100, detector_dist=camera_length, detector=detector)

pc494 commented 3 years ago

It looks like npt_rad has been replaced by npt in the function signature, which should resolve the first problem.

andy-bridger commented 3 years ago

Yeh, tracked that down, the rest of the issues seemed to be with the specifying a detector and detector distance within this method. I think there has been a change in the code and now there is a set_ai method, I'm not certain exactly how it has changed but it no longer functions as shown in the demo

pc494 commented 3 years ago

Okay, sounds like I will need to rewrite it then, I hadn't noticed the scale of those changes; thanks for the bug report.

pc494 commented 3 years ago

@CSSFrancis I had a look at this today (both demo 07 and 09) - is there any chance these are easy fixes for you?

CSSFrancis commented 3 years ago

Yes. I can make the changes to the demo (hopefully today but definitely tomorrow). I think that this demo never got updated with the latest changes (my fault).