Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing the extracted ibw files from a force map (*.ARDF) not working #26

Open
tenoriomaria opened this issue Jun 10, 2022 · 3 comments

Comments

@tenoriomaria
Copy link

Hi,
I am working with Asulym Research AFM and PyJibe. The data I acquire are maps of force-distance curves, that are generated into a *.ARDF format. From the Asylum Research program I can extract each force-distance curve individually into *.ibw files, in order to analyze them with PyJibe afterwards. However, and opposite to what happens to 'standard' *.ibw files, which I successfully open, I cannot import the extracted force-distance curves of this force map into PyJibe. The error bellow appears. Thanks in advance!

Unhandled exception in PyJibe version 2022.01.08.post21:
Traceback (most recent call last):
File "/Users/maria/Downloads/PyJibe-master/pyjibe/head/main.py", line 286, in on_open_single
self.load_data(files=n, retry_open=self.on_open_single)
File "/Users/maria/Downloads/PyJibe-master/pyjibe/head/main.py", line 149, in load_data
self.add_subwindow(aclass, flist)
File "/Users/maria/Downloads/PyJibe-master/pyjibe/head/main.py", line 156, in add_subwindow
inst.add_files(flist)
File "/Users/maria/Downloads/PyJibe-master/pyjibe/fd/main.py", line 223, in add_files
user_metadata=user_metadata)
File "/Users/maria/Downloads/PyJibe-master/pyjibe/fd/main.py", line 122, in load_file
grp = nanite.IndentationGroup(path, callback=callback)
File "/Users/maria/opt/anaconda3/envs/pyjibe/lib/python3.7/site-packages/nanite/group.py", line 61, in init
**get_load_data_modality_kwargs()
File "/Users/maria/opt/anaconda3/envs/pyjibe/lib/python3.7/site-packages/afmformats/afm_group.py", line 43, in init
data_classes_by_modality=data_classes_by_modality
File "/Users/maria/opt/anaconda3/envs/pyjibe/lib/python3.7/site-packages/afmformats/formats/init.py", line 257, in load_data
meta_override=meta_override):
File "/Users/maria/opt/anaconda3/envs/pyjibe/lib/python3.7/site-packages/afmformats/formats/fmt_igor.py", line 72, in load_igor
metadata["date"] = notes["Date"]
KeyError: 'Date'

@paulmueller
Copy link
Member

Hi there, could you please attach such an .ibw file (you will probably have to zip it)? You should be able to just drag-and-drop it in.

@tenoriomaria
Copy link
Author

Line0000Point0000.ibw.zip
Here you have!
Thanks a lot!

@nnkkdtc
Copy link

nnkkdtc commented Jul 1, 2024

Could you tell me if a force map (*.ARDF) can be loaded? If yes, please tell me how to load the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants