From ab7bfce915c99cd15aa95b70672d284d7a77125a Mon Sep 17 00:00:00 2001 From: Hugh Garsden Date: Sun, 25 Mar 2018 14:22:40 -0400 Subject: [PATCH] Usage --- hkl_report.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hkl_report.py b/hkl_report.py index d59d2b1..a5f19ce 100755 --- a/hkl_report.py +++ b/hkl_report.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python + import hickle, sys, numpy as np import matplotlib.pyplot as plt @@ -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)