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

Will not load or file read ebsd/h5 files #708

Open
sawicks opened this issue Dec 9, 2024 · 5 comments
Open

Will not load or file read ebsd/h5 files #708

sawicks opened this issue Dec 9, 2024 · 5 comments

Comments

@sawicks
Copy link

sawicks commented Dec 9, 2024

searched the plugins and did not have any of the extensions to read the ebsd file in any file form offered

@hakonanes
Copy link
Member

Hi @sawicks!

Which format is your file in? We have readers for most formats: https://kikuchipy.org/en/stable/tutorials/load_save_data.html#Supported-file-formats

@sawicks
Copy link
Author

sawicks commented Dec 10, 2024

Trying to read an .edaxh5 file. I keep getting an 'Attribute Error', even after changing the file to h5 or ebsdh5

@hakonanes
Copy link
Member

Can you print the complete traceback when the error occurs?

And is the file small enough for you to share it with me? I could have a look at improving our EXAD h5ebsd reader.

@sawicks
Copy link
Author

sawicks commented Dec 11, 2024

['data', 'detectors', 'draw', 'filters', 'imaging', 'indexing', 'io', 'load', 'pattern', 'set_log_level', 'signals', 'simulations']
['plugins']
['plugins']

Traceback (most recent call last):

  File ~\AppData\Local\anaconda3\Lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec
    exec(code, globals, locals)

  File ----wicks\12_4_24\untitled5.py:19
    help(kp.io.plugins_h5ebsd)

  File ~\AppData\Local\anaconda3\Lib\site-packages\lazy_loader\__init__.py:94 in __getattr__
    raise AttributeError(f"No {package_name} attribute {name}")

AttributeError: No kikuchipy.io attribute plugins_h5ebsd

@hakonanes I unfortunately cannot share the file because it is too large. I tried several different extensions including .h5, .h5ebsd, and .edaxh5 to try and get the file read but none worked

@hakonanes
Copy link
Member

Thank you for sharing the traceback. Based on it, it seems like this line help(kp.io.plugins_h5ebsd) causes the error. As the error message says, there is no such module in the kikuchipy.io module.

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

2 participants