Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcantor22 committed Jul 23, 2024
1 parent 1119475 commit 725b46e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mmeds/tools/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,14 @@ def run_analysis(self):
if self.testing or not (self.run_on_node == -1):
Logger.debug('I {} am about to run'.format(self.name))
jobfile.chmod(0o770)
with open(jobfile, 'r') as f:
Logger.debug(f"Jobfile:\n{f.read()}")
# Send the output to the error log
with open(self.get_file('errorlog', True), 'w+', buffering=1) as f:
# Run the command
run([jobfile], stdout=f, stderr=f)
with open(self.get_file('errorlog', True), 'r') as f:
Logger.debug(f"Job stdout/err:\n{f.read()}")
Logger.debug('I {} have finished running'.format(self.name))
else:
# Create a file to execute the submission
Expand Down

0 comments on commit 725b46e

Please sign in to comment.