py4dstem / py4dstem/py4DSTEM

ACOM problem

Open
#487 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
279
Forks
177
PR merge metrics
No merged PRs in 30d

Description

Hello Everyone,
I follow the tutorial on ACOM, In particular the tutorial with the name orientation_01_AuAgPd_wire.
The calibration of the pixel size works well but when I perform the saving.
I have this problem:

AssertionError: invalid type <class 'numpy.float64'> found for data

The command it's the same of the tutorial:

file_name_bragg_peaks_cali = file_analysis + 'Pixel Size.h5
py4DSTEM.save(file_name_bragg_peaks_cali,
bragg_peaks_cali,
mode='o',)

AssertionError: invalid type <class 'numpy.float64'> found for data

I tried anyway to go, but logically the indexing or the comand get_virtual_image
don't work.

P.S. my version of py4DSTEM is 0.14.2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the orientation_01_AuAgPd_wire tutorial using py4DSTEM 0.14.2, focusing on the calibration save command for Pixel Size.h5. Start with the reported AssertionError for numpy.float64, then check whether indexing and get_virtual_image work after saving. Done means the calibration saves without the assertion and those subsequent tutorial steps run.

Written by the indexing model from the issue text.

Assessment

Tech stack
numpy, python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.