You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# # we want to load .xy, xye, file types. These are the most common. For anyting else (.snc, .txt, .csv, .dat) we return an error message. Why: some of them have different delimineters.
@@ -19,7 +21,6 @@
19
21
# else:
20
22
# raise ValueError('Error: your .xy contains headers. Delete the header rows in your .xy or .xye file')
21
23
22
-
23
24
# def tth_to_q(tth, wl):
24
25
# tth_rad = np.deg2rad(tth)
25
26
# q = (4 * np.pi / wl) * np.sin(tth_rad / 2)
@@ -34,8 +35,8 @@
34
35
35
36
defget_args():
36
37
p=ArgumentParser()
37
-
p.add_argument("filename", help="the filename of the datafile to load")
38
-
p.add_argument("mud", help="mu*D for your sample")
38
+
p.add_argument("data_file", help="the filename of the datafile to load")
39
+
p.add_argument("mud", help="mu*D for your sample", type=float)
0 commit comments