Simulate and phase 3D diffraction volumes for crystals with translational disorder.
$ git clone https://github.com/andyofmelbourne/crappy_crystals.git
Done!
- python (probably => 2.7)
- h5py
- pyqtgraph (for the gui only)
- scipy
- numpy
$ cd crappy_crystals
$ python process/forward_model.py -f hdf5/duck/duck.h5 -c process/forward_model.ini
$ python process/phase.py -f hdf5/duck/duck.h5 -c process/phase.ini
Now you results are in the file 'hdf5/duck/duck.h5' in the field '/phase/solid_unit'.
$ cd crappy_crystals
$ python gui/crappy_gui.py hdf5/duck/duck.h5
If hdf5/duck/duck.h5 does not exist (which it will not the first time) then press Enter when asked if you would like to create this file.
A Gui will then launch with some tabs up the top of the window. Click on the 'Forward model' tab then click the 'Calculate forward model' button in that tab.
Click the 'show h5 dataset' tab and then on the 'update' button to see the datasets that have been written to the file you have created. Click on a dataset and you will get a representation of it.
Now Click the 'Phase' tab then the 'phase' button. Wait, and... bam! you should see something that looks like the forward model.