From b41601e6196f8205ca761556987b4d9b2170836f Mon Sep 17 00:00:00 2001
From: Olle Hansson <olle.hansson@liu.se>
Date: Fri, 24 Feb 2023 13:39:33 +0100
Subject: [PATCH] Forgot to add example input file

---
 b_asic/signal_generator.py | 5 ++++-
 examples/input.csv         | 5 +++++
 2 files changed, 9 insertions(+), 1 deletion(-)
 create mode 100644 examples/input.csv

diff --git a/b_asic/signal_generator.py b/b_asic/signal_generator.py
index debab6dc..c236a1cb 100644
--- a/b_asic/signal_generator.py
+++ b/b_asic/signal_generator.py
@@ -183,7 +183,10 @@ class FromFile(SignalGenerator):
             self._data = data
             self._len = len(data)
         except ValueError:
-            raise Exception("Selected input file is not of the right format.")
+            raise Exception(
+                "Selected input file is not of the right format, should be of filetype"
+                " .txt or .csv and contain single column input vector."
+            )
 
     def __call__(self, time: int) -> complex:
         if 0 <= time < self._len:
diff --git a/examples/input.csv b/examples/input.csv
new file mode 100644
index 00000000..b0917c8e
--- /dev/null
+++ b/examples/input.csv
@@ -0,0 +1,5 @@
+0
+1
+0
+0
+0
-- 
GitLab