#!/usr/bin/env python
+from __future__ import print_function
from glob import glob
import logging
import os
#startCmdLineStatusMonitor(ci)
# running step
- print 'Running pipeline now!'
+ print('Running pipeline now!')
run_status = run_pipeline(conf_info)
if run_status is True:
LOGGER.info('Runner: Pipeline: success')
if __name__ == "__main__":
sys.exit(main(sys.argv[1:]))
-
#!/usr/bin/python
+from __future__ import print_function
+
__docformat__ = "restructuredtext en"
import subprocess
#Standard output handling
else:
- print 'Sequence line:', line
+ print('Sequence line:', line)
mo = s_seq_folder.search(line)
conf_info.bustard_path = line[mo.end():]
conf_info.run_path, temp = os.path.split(conf_info.bustard_path)
stdout=fout,
stderr=ferr)
- print "Configuring pipeline: %s" % (time.ctime())
+ print("Configuring pipeline: %s" % (time.ctime()))
error_code = pipe.wait()
# Clean up
# 1) The stdout completed without error
# 2) The program exited with status 0
# 3) No errors found in stdout
- print '#Expect: True, False, True, True'
- print complete, bool(error_code), abort != RUN_ABORT, stderr_success is True
+ print('#Expect: True, False, True, True')
+ print(complete, bool(error_code), abort != RUN_ABORT, stderr_success is True)
status = complete is True and \
bool(error_code) is False and \
abort != RUN_ABORT and \
ferr.close()
# Finished file check!
- print 'RUN SUCCESS CHECK:'
+ print('RUN SUCCESS CHECK:')
for key, value in event.run_status_dict.items():
- print ' %s: %s' % (key, value)
+ print(' %s: %s' % (key, value))
dstatus = event.run_status_dict
'''summarize fastq file
'''
+from __future__ import print_function
+
import os
import numpy
import sys
from autoopen import autoopen
with autoopen(sys.argv[1], 'r') as instream:
- print summarize_hiseq_fastq(instream)
+ print(summarize_hiseq_fastq(instream))
+from __future__ import print_function
+
__docformat__ = "restructuredtext en"
import glob
during a run and provides methods for retrieving
(completed, total) for each step or entire run.
"""
- #print 'self._conf_filepath = %s' % (conf_filepath)
+ #print('self._conf_filepath = %s' % (conf_filepath))
self._conf_filepath = conf_filepath
self._base_dir, junk = os.path.split(conf_filepath)
self._image_dir = os.path.join(self._base_dir, 'Images')
"""
Figures out the number of cycles that are available
"""
- #print 'self._image_dir = %s' % (self._image_dir)
+ #print('self._image_dir = %s' % (self._image_dir))
cycle_dirs = glob.glob(os.path.join(self._image_dir, 'L001', 'C*.1'))
- #print 'cycle_dirs = %s' % (cycle_dirs)
+ #print('cycle_dirs = %s' % (cycle_dirs))
cycle_list = []
for cycle_dir in cycle_dirs:
junk, c = os.path.split(cycle_dir)
while 1:
if conf_info.status is None:
- print "No status object yet."
+ print("No status object yet.")
time.sleep(SLEEP_AMOUNT)
continue
report = conf_info.status.statusReport()
- print os.linesep.join(report)
- print
+ print( os.linesep.join(report))
+ print()
time.sleep(SLEEP_AMOUNT)
parser.error("need name of configuration file")
status = GARunStatus(args[0])
- print os.linesep.join(status.statusReport())
+ print(os.linesep.join(status.statusReport()))
return 0
if __name__ == "__main__":
sys.exit(main(sys.argv[1:]))
-
+from __future__ import print_function
+
import logging
import os
'platform_id': platform_id,
'series_id': series_id,
})
- print str(soft_template.render(context))
+ print(str(soft_template.render(context)))
def check_for_name(self, analysis_node):
name = fromTypedNode(
+from __future__ import print_function
import logging
import os
from pprint import pformat
self.baseurl = os.path.join(baseurl, self.name)
if baseupload:
sshurl = parse_ssh_url(baseupload)
- print sshurl
+ print(sshurl)
self.user = sshurl.user
self.host = sshurl.host
self.uploadpath = sshurl.path
#!/usr/bin/env python
-
"""
Build a fake directory tree for testing rsync management code.
"""
+from __future__ import print_function
import os
import random
difference = experimental_set - theoretical_set
issame = (len(difference) == 0)
if verbose and not issame:
- print difference
+ print(difference)
return issame
# contains the following line:
#
# include RELEASE-VERSION
+from __future__ import print_function
__all__ = ("get_git_version")
if __name__ == "__main__":
- print get_git_version()
+ print(get_git_version())