Skip to content
Snippets Groups Projects

Guifilesignal

Merged Olle Hansson requested to merge guifilesignal into master
2 unresolved threads
Files
2
@@ -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:
Loading