Skip to content
Snippets Groups Projects

Guifilesignal

Merged Olle Hansson requested to merge guifilesignal into master
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
@@ -183,7 +183,10 @@ class FromFile(SignalGenerator):
@@ -183,7 +183,10 @@ class FromFile(SignalGenerator):
self._data = data
self._data = data
self._len = len(data)
self._len = len(data)
except ValueError:
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:
def __call__(self, time: int) -> complex:
if 0 <= time < self._len:
if 0 <= time < self._len:
Loading