You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am trying to work through section 2 in example notebook 3 in version 0.13.2. but I am getting this AttributeError, see below. Could you please help me to solve this?
Thanks!
In [9]: cal.get_elliptical_distortion(mask_radius=10, scale=100, amplitude=1000, asymmetry=0.9,spread=2)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-13-27e3dbe10698> in <module>
----> 1 cal.get_elliptical_distortion(mask_radius=10,
2 scale=100, amplitude=1000,
3 asymmetry=0.9,spread=2)
D:\Python\Anaconda\envs\pyxem\lib\site-packages\pyxem\generators\calibration_generator.py in get_elliptical_distortion(self, mask_radius, scale, amplitude, spread, direct_beam_amplitude, asymmetry, rotation, center)
167 )
168 standard_dp = self.diffraction_pattern
--> 169 image_size = standard_dp.data.shape[0]
170 if center is None:
171 center = [(image_size - 1) / 2, (image_size - 1) / 2]
AttributeError: 'CalibrationDataLibrary' object has no attribute 'data'
The text was updated successfully, but these errors were encountered:
Sorry about the delay on getting back to you. It seems this demo is still running on 0.12, in the version you are using the generator is initialised with diffraction_pattern. So the line:
Hi,
I am trying to work through section 2 in example notebook 3 in version 0.13.2. but I am getting this AttributeError, see below. Could you please help me to solve this?
Thanks!
The text was updated successfully, but these errors were encountered: