Skip to content

Commit

Permalink
CalcJobFollower call in node viewer compatible API (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz authored Nov 30, 2022
1 parent 001a7df commit 75b01b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aiidalab_qe/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def _fetch_output(self, calcjob):
if "retrieved" in calcjob.outputs:
try:
self.filename = calcjob.base.attributes.get("output_filename")
with calcjob.outputs.retrieved.open(self.filename) as f:
with calcjob.outputs.retrieved.base.repository.open(self.filename) as f:
return f.read().splitlines()
except OSError:
return list()
Expand Down Expand Up @@ -354,8 +354,8 @@ def __init__(self, calcjob, **kwargs):
self.output_follower = CalcJobOutputFollower()
self.log_output = LogOutputWidget()

self.output_follower.calcjob_uuid = self.calcjob.uuid
self.output_follower.observe(self._observe_output_follower_lineno, ["lineno"])
self.output_follower.calcjob = self.calcjob

super().__init__(
[ipw.HTML(f"CalcJob: {self.calcjob}"), self.log_output], **kwargs
Expand Down

0 comments on commit 75b01b3

Please sign in to comment.