Guifilesignal
2 unresolved threads
2 unresolved threads
Closes #168 (closed). Also fixed sizing of simulate window, though cannot be resized.
Merge request reports
Activity
added SFG GUI Signal generator labels
173 174 def __init__(self, path) -> None: 175 try: 176 data = np.loadtxt(path, dtype=complex).tolist() 177 self._data = data 178 self._len = len(data) 179 except FileNotFoundError: 180 self._window.logger.error(f"Selected input file not found.") 181 182 def __call__(self, time: int) -> complex: 183 if 0 <= time < self._len: 184 return self._data[time] 185 return 0.0 186 187 def __repr__(self) -> str: 188 return f"ZeroPad({self._data})" changed this line in version 2 of the diff
- Resolved by Oscar Gustafsson
165 """ 166 Signal generator that reads from file and pads a sequence with zeros. 167 168 Parameters 169 ---------- 170 path : string 171 Path to input file. 172 """ 173 174 def __init__(self, path) -> None: 175 try: 176 data = np.loadtxt(path, dtype=complex).tolist() 177 self._data = data 178 self._len = len(data) 179 except FileNotFoundError: 180 self._window.logger.error(f"Selected input file not found.") changed this line in version 2 of the diff
added 1 commit
- 61be4841 - Added doc and test for signalgenerator FromFile
added 1 commit
- 94459b19 - Added two tests and tidied the FromFile code
added 17 commits
-
84ac08e5...ec553c1b - 11 commits from branch
master
- 2deb8dd9 - FromFileInput added
- e73c313d - Fixed size of simulate windows
- 566938a1 - Added doc and test for signalgenerator FromFile
- b41601e6 - Forgot to add example input file
- 8c8db2fe - Added two tests and tidied the FromFile code
- c3613c25 - Updating simulate test
Toggle commit list-
84ac08e5...ec553c1b - 11 commits from branch
Please register or sign in to reply