Skip to content

andyofmelbourne/crappy_crystals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crappy-crystals

Simulate and phase 3D diffraction volumes for crystals with translational disorder.

Installation as local user on Linux

$ git clone https://github.com/andyofmelbourne/crappy_crystals.git 

Done!

Requires

  • python (probably => 2.7)
  • h5py
  • pyqtgraph (for the gui only)
  • scipy
  • numpy

Example command line

$ 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'.

Example GUI

$ 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.

About

Ab initio phasing for crappy crystals

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages