Skip to content

Commit

Permalink
Usage
Browse files Browse the repository at this point in the history
  • Loading branch information
hughbg committed Mar 25, 2018
1 parent 38dce3a commit ab7bfce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hkl_report.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python

import hickle, sys, numpy as np
import matplotlib.pyplot as plt

Expand All @@ -18,5 +20,8 @@ def report_hkl(data):
plt.imshow(np.ma.filled(data["252A"], 0), clim=(1000,10000), aspect="auto")
plt.show()

if len(sys.argv) == 1:
print "Need 1 hkl file as argument"
exit(1)
d = load_hkl(sys.argv[1])
report_hkl(d)

0 comments on commit ab7bfce

Please sign in to comment.