Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cruft removal
Browse files Browse the repository at this point in the history
tomkinsc committed Mar 21, 2024

Verified

This commit was signed with the committer’s verified signature.
djhi Gildas Garcia
1 parent 6184fd2 commit e85352c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions phylo/vphaser2.py
Original file line number Diff line number Diff line change
@@ -39,13 +39,12 @@ def execute(self, inBam, outDir, numThreads=None): # pylint: disable=W0221
log.debug(cmd_str)

# Use check_output instead of check_call so that we get error information
# if the executable can't run on travis.
# if the executable can't run on GitHub Actions.
# Also has the effect of suppressing informational messages from vphaser,
# which is probably a good thing.
try:
subprocess.check_output(cmd, env=envCopy, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as ex:
#print(ex.output if type(ex.output)==str else ex.output.decode('utf-8')) # Useful in case of no log handler.
log.error(ex.output if type(ex.output)==str else ex.output.decode('utf-8'))
raise

@@ -75,4 +74,3 @@ def iterate(self, inBam, numThreads=None):
for line in inf:
if not line.startswith('#'):
yield [chromName] + line.strip().split()
#shutil.rmtree(outdir)

0 comments on commit e85352c

Please sign in to comment.