Closed winston-song closed 3 years ago
~Apparently your signal became a Signal2D
at some point, which doesn't have that class method? From notebook 1 it seems that you must use dp.set_signal_type("electron_diffraction")
? I guess more active pyxem users can give you the answer if this doesn't work.~
Edit: see @pc494 answer below.
Hi there,
In the short term these can be fixed by add the line
data = pxm.ElectronDiffraction2D(data)
after loading. The 0.12 series (which I presume you are running) has some issues with io
that should be fixed in our next release.
dp = pxm.load_hspy('./data/01/twinned_nanowire.hdf5') dp.set_microscope_parameters(beam_energy=300.0, camera_length=21.0, scan_rotation=277.0, convergence_angle=0.7, exposure_time=10.0)
AttributeError Traceback (most recent call last)