summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinternetlandlord <f.fredhenry@gmail.com>2022-10-12 20:58:36 +0000
committerinternetlandlord <f.fredhenry@gmail.com>2022-10-12 20:58:36 +0000
commit2163bfa4f62dceada7c4383f29844642051e8f9d (patch)
tree3855d2f2457a79ca2ccff5315dcdd0ff09046626
parentd5e9a4c0edeb2edf5adbc1a4e944941350afaf50 (diff)
Updated README.md and added a testing file
-rw-r--r--README.md7
-rwxr-xr-xtester.py25
2 files changed, 31 insertions, 1 deletions
diff --git a/README.md b/README.md
index ca3deb6..f0f47a0 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,7 @@
# algo-py
-learning algorithms in python
+
+## The python algorithm repository
+The purpose of this repo is to explore and demonstrate the function of computer
+science algorithms with file manipulation (using CSV files of random numbers).
+
+The functional file contains I/O functions for ingressing and egressing data.
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)