Skip to content

Commit

Permalink
When a callback function is givem and the simulation fails, the get_r…
Browse files Browse the repository at this point in the history
…esults() returns None.
  • Loading branch information
nunobrum committed Sep 26, 2024
1 parent 5e10d0c commit 9001d18
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spicelib/sim/run_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@ def get_results(self) -> Union[None, Any, Tuple[str, str]]:
else:
return self.raw_file, self.log_file
else:
return '', ''
if self.callback:
return None
else:
return self.raw_file, self.log_file

def wait_results(self) -> Union[Any, Tuple[str, str]]:
"""
Expand Down

0 comments on commit 9001d18

Please sign in to comment.