Closed ezatterin closed 5 years ago
This should be fixed now. Can you test it?
Different error:
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-37-32333116e5f9> in <module>
----> 1 chan.get_extent()
c:\python37\lib\site-packages\pySPM\SPM.py in get_extent(self)
464
465 def inv_calc_flat(self, d, l=0.1):
--> 466 """
467 Function used for inverse MFM calculation (inspired from http://qmfm.empa.ch/qmfm/)
468 The function is in its early devlopment stage as not used by the developed.
KeyError: 'recorded'
This works for me
scan = pySPM.Bruker(os.path.expanduser("~/Dropbox/e17089.0_00001.spm"))
chan = scan.get_channel()
print(chan.get_extent())
chan.pixels -= np.min(chan.pixels)
fig, ax = plt.subplots(1,1)
p = chan.show();
plt.colorbar(p);
(0, 500.0, 0, 500.0)
My bad, I messed up with the pySPM versions. Thanks, closing!
The following:
Results in an error: