Skip to content

Commit

Permalink
add error output in gulp
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhu2017 committed May 19, 2024
1 parent e8580d3 commit 92ed55c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pyxtal/interface/gulp.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,12 @@ def execute(self):
os.system(cmd)

def clean(self):
os.remove(self.input)
os.remove(self.output)
if self.error:
os.system('mv ' + self.input + ' error_' + self.input)
os.system('mv ' + self.output + ' error_' + self.output)
else:
os.remove(self.input)
os.remove(self.output)
if self.dump is not None:
os.remove(self.dump)

Expand Down

0 comments on commit 92ed55c

Please sign in to comment.