Comments (11)
Hmm, okay.
This looks like something with the parser itself then. If you send me the SXM file, i can take a look ([email protected]).
Also what is the Nanonis HW you are using?
from pyspm.
Hmm, okay.
This looks like something with the parser itself then. If you send me the SXM file, i can take a look ([email protected]).
Also what is the Nanonis HW you are using?
Did u get my email ?
from pyspm.
Thanks a lot, it is working!!! Wow I really appreciate your time you spend for solving this issue!!
from pyspm.
Hi, I double checked the SXM loader with Nanonis measurements and it works correctly. Try pointing it directly to your measurement data:
from pathlib import Path
import pySPM
p = Path("C:\\Users\\rbrue\\Nextcloud\\Data Lab 013\\Sample 09_22\\09_2022\\FeTa110_20220923_CrTip_9935R_4.2K_2.4T_011.sxm")
afm = pySPM.SXM(p)
afm.list_channels()
from pyspm.
Hey,
first of all thanks a lot for this quick response!!
Unfortunately it is giving me exactly the same error meassage like before.
afm = pySPM.SXM(p)
Traceback (most recent call last):Cell In[27], line 1
afm = pySPM.SXM(p)File ~\AppData\Roaming\Python\Python311\site-packages\pySPM\SXM.py:36 in init
self.header[key].append(l.decode('ascii').split())UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 11: ordinal not in range(128)
from pyspm.
Okay, so I took a look at the header of the file you sent. This is not a file that is output by Nanonis, it looks to be a Gwyddion SXM, which is not supported by pySPM. See the comparison below with a file output by Nanonis.
from pyspm.
Try the file directly output from Nanonis, and see if that works.
from pyspm.
Ah sorry maybe I sended you not an untouched file...I will send you the raw file again but I checked already a raw file and same Error message.
So in a few you will receive again an Email with raw .sxm file.
from pyspm.
Okay, so the structure of this file is correct. The reason for this error is the unicode characters in the file (the parser assumes ascii). This is fixed in the latest version of pySPM 0.3.3.
Thanks for reporting it.
from pyspm.
So you mean it is fixed because you fixed it now or am I using an old version of pySPM?
from pyspm.
Update to the latest version of pySPM
pip install -U pySPM
from pyspm.
Related Issues (20)
- Calibration of ITM files HOT 1
- https://github.com/scholi/pySPM_data. This URL could not be found . HOT 7
- D:\Anaconda\lib\site-packages\pySPM\data\CristA_0002.xml HOT 3
- Scaling parts of the spectrum HOT 3
- Wired z axis values HOT 4
- Issue with median of differences correction HOT 2
- "li" variable not defined in ITM.py HOT 6
- reuse file format reader in afmformats HOT 3
- Defining regions of interest (ROI) HOT 2
- Nonsquare scans Bruker files (.spm) HOT 5
- SurfaceLab7 .itax & .itm file support HOT 8
- lower case augment support for get_channel() struct.error: unpack requires a buffer of 369664 bytes HOT 1
- Error when opening an ITM File generated by Surface Lab 7 HOT 2
- Bruker spm format: request for explanantion of overall scale computation HOT 1
- Question: basic plotting code HOT 1
- Controlling image axix label size font type..etc HOT 1
- Unable to load an approach curve from Bruker Icon HOT 5
- Error while using correct_lines/ correct_slope on .spm- (Bruker-) data with different x-,y-dimension HOT 2
- get_channel does not work for specific afm channel - value error HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyspm.