summaryrefslogtreecommitdiff
path: root/tester.py
diff options
context:
space:
mode:
Diffstat (limited to 'tester.py')
-rwxr-xr-xtester.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/tester.py b/tester.py
new file mode 100755
index 0000000..e44982f
--- /dev/null
+++ b/tester.py
@@ -0,0 +1,25 @@
+#!/bin/python3
+
+# ---------- Testing script
+# Uses command line arguments to call functions
+
+
+# ---------- Imported modules
+
+import inputoutput as io
+import csv
+import sys
+
+# ---------- Main
+
+# command line args passed to variables
+rspan = int(sys.argv[1])
+rlim = int(sys.argv[2])
+ofile =sys.argv[3]
+
+print("Your params:\n")
+print("\tCSV size: {}".format(rspan))
+print("\tNumber range: 1 - {}".format(rlim))
+print("\tOutput file: {}".format(ofile))
+print("\nGenerating a CSV!")
+io.generateCSV(rspan,rlim,ofile)