instamatic-dev / instamatic

Python program for automated electron diffraction data collection
https://instamatic.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
57 stars 25 forks source link

Indexing an electron diffraction pattern #51

Closed Anudha closed 3 years ago

Anudha commented 3 years ago

This link suggests that instamatic browser is a program for indexing electron diffraction patterns.  

The command is given as this:

instamatic.browser images/*.tiff -r results.csv

Is there an example indexing an electron diffraction or finding the zone axis of a diffraction pattern based on a known crystal structure?

stefsmeets commented 3 years ago

Hi @Anudha , thanks for pointing this out, it was at some point built-in to this program. I guess I forgot to update this part of the documentation. I split off all the indexing routines into its own package: https://github.com/stefsmeets/problematic/. You may want to have a look at that (although there surely are better options by now 😅).

Anudha commented 3 years ago

Hi Stef Smeets,

Thanks for the link! I tried it out and worked through some errors. I am posting them here. If you have moved on from this work, no problem! Public posting will keep the conversation going for anyone interested and new users :) Yes, I am trying out a number of other codes too.

No module named 'problematic.get_score_cy’ Commented out the relevant line to run for an initial pass No module named ‘gcd’ in fractions.py
Commented out the relevant line to run for an initial pass

Anudha commented 3 years ago

First output from example code on a selected area diffraction pattern without adjusting constants in the code is 3 figures.
image

stefsmeets commented 3 years ago

Thanks @Anudha , what code is this output from?

No worries if you found other code that works better. If so, then also let me know so we can close this issue. I don't have much time to maintain problematic anymore, although what is in the repo should work.

Anudha commented 3 years ago

@stefsmeets Yes, sure we can close the issue.