Skip to content

Tolerance too high for get_library_entries #173

@pc494

Description

@pc494

Describe the bug
The tolerance on the get_library_entries of DiffractionLibrary is too tight. If everything was staying in degrees 1e-5 would be fine but once radians conversions are accounted for something like 1e-2 seems more appropriate.

Thanks to Aaron Chote who brought this to my attention.

The case:

diff_lib.get_library_entry('phase',angle=np.rad2deg([1.53589,0.29932,-1.53589]))

will not give (88,17.15,-88)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions