Skip to content

Commit

Permalink
Let report() return status.
Browse files Browse the repository at this point in the history
  • Loading branch information
cuihantao committed Mar 20, 2023
1 parent 24d0f18 commit 4f0a0b9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions andes/routines/pflow.py
Expand Up @@ -270,10 +270,19 @@ def run(self, **kwargs):
def report(self):
"""
Write power flow report to a plain-text file.
Returns
-------
bool
True if report was written, False otherwise.
"""

if self.system.files.no_output is False:
r = Report(self.system)
r.write()
return True

return False

def _set_xy(self, xy):
"""
Expand Down

0 comments on commit 4f0a0b9

Please sign in to comment.