AFM-analysis / afmformats

Python library for reading common AFM file formats
MIT License
9 stars 6 forks source link

Failure when importing *.ibw file in Pyjibe user interface #8

Closed tenoriomaria closed 4 years ago

tenoriomaria commented 4 years ago

I am very new at programming with Python. When starting the Pyjibe program (I have created an environment with Python 3.6) and trying to load single files with extensions *.ibw this problem appears:

_Unhandled exception in PyJibe version 0.7.3: Traceback (most recent call last): File "/Users/maria/opt/anaconda3/envs/python36/lib/python3.6/site-packages/pyjibe/head/main.py", line 151, in on_open_single self.load_data(files=n, retry_open=self.on_open_single) File "/Users/maria/opt/anaconda3/envs/python36/lib/python3.6/site-packages/pyjibe/head/main.py", line 210, in load_data self.add_subwindow(aclass, flist) File "/Users/maria/opt/anaconda3/envs/python36/lib/python3.6/site-packages/pyjibe/head/main.py", line 70, in add_subwindow inst.add_files(flist) File "/Users/maria/opt/anaconda3/envs/python36/lib/python3.6/site-packages/pyjibe/fd/main.py", line 147, in add_files grp = nanite.IndentationGroup(f, callback=callback) File "/Users/maria/opt/anaconda3/envs/python36/lib/python3.6/site-packages/nanite/group.py", line 48, in init self += load_group(path, callback=callback) File "/Users/maria/opt/anaconda3/envs/python36/lib/python3.6/site-packages/nanite/group.py", line 23, in load_group data = load_data(path, callback=callback) File "/Users/maria/opt/anaconda3/envs/python36/lib/python3.6/site-packages/nanite/read.py", line 55, in load_data measurements = afmformats.load_data(pp, callback=callback) File "/Users/maria/opt/anaconda3/envs/python36/lib/python3.6/site-packages/afmformats/formats.py", line 117, in load_data meta_override=meta_override): File "/Users/maria/opt/anaconda3/envs/python36/lib/python3.6/site-packages/afmformats/fmt_igor.py", line 55, in load_igor time, ap = notes["Time"].split() ValueError: not enough values to unpack (expected 2, got 1)

I think it is related with setup.py, because when I write in the terminal 'python3 setup.py test'. it replies with 'no such file or directory'

I attach an example of any of my *.ibw files SiN_FD_plot.ibw.zip

paulmueller commented 4 years ago

Thanks for the issue. This is actually just a parsing problem in afmformats. I transferred it here because of that.

paulmueller commented 4 years ago

If you installed PyJibe via a virtual environment, you can simply upgrade afmformats via pip install afmformats==0.10.1 and it should work.

tenoriomaria commented 4 years ago

?Now it works, thank you so much!


From: Paul Müller notifications@github.com Sent: 01 April 2020 22:07 To: AFM-analysis/afmformats Cc: María Tenorio; Author Subject: Re: [AFM-analysis/afmformats] Failure when importing *.ibw file in Pyjibe user interface (#8)

If you installed PyJibe via a virtual environment, you can simply upgrade afmformats via pip install afmformats==0.10.1 and it should work.

- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/AFM-analysis/afmformats/issues/8#issuecomment-607463766, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APAVWOZNE4QHEV6UCM2F3EDRKONHLANCNFSM4LZNLNKQ.