Skip to content

Instantly share code, notes, and snippets.

@ndevenish
Last active March 2, 2022 16:20
Show Gist options
  • Save ndevenish/d25c17a8d7403735393ab80cefe2ecd4 to your computer and use it in GitHub Desktop.
Save ndevenish/d25c17a8d7403735393ab80cefe2ecd4 to your computer and use it in GitHub Desktop.
# conda create -n test1 python=3.9
# conda activate test1
# conda install -c conda-forge cctbx dxtbx
# python
from matplotlib import pyplot as plt
import dxtbx
img = dxtbx.load('test.cbf')
plt.imshow(img.get_raw_data().as_numpy_array())
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment