Skip to content

Commit

Permalink
Fix print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
mrakitin committed Oct 6, 2021
1 parent cbdf09f commit b7bc7a5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pygix/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def _process1d(self):
t_start = time.time()

for i, f in enumerate(file_list):
print 'processing file: {}/{}\n\t{}'.format(i + 1, n_files, f)
print('processing file: {}/{}\n\t{}'.format(i + 1, n_files, f))

# THIS WORKS BUT NEEDS TESTING
# if self.out_fname is not None:
Expand All @@ -166,7 +166,7 @@ def _process1d(self):
t_end = time.time() - t_start
msg = '{} files processed in {} seconds\n'
msg += '{} seconds per file'
print msg.format(n_files, t_end, t_end/n_files)
print(msg.format(n_files, t_end, t_end/n_files))

y_scale = np.arange(0, n_files)
out = (out_array, x_scale, y_scale)
Expand All @@ -185,7 +185,7 @@ def _process2d(self):
t_start = time.time()

for i, f in enumerate(file_list):
print 'processing file: {}/{}\n\t{}'.format(i + 1, n_files, f)
print('processing file: {}/{}\n\t{}'.format(i + 1, n_files, f))

# THIS WORKS BUT NEEDS TESTING
# if self.out_fname is not None:
Expand All @@ -197,7 +197,7 @@ def _process2d(self):
t_end = time.time() - t_start
msg = '{} files processed in {} seconds\n'
msg += '{} seconds per file'
print msg.format(n_files, t_end, t_end/n_files)
print(msg.format(n_files, t_end, t_end/n_files))

return True

Expand Down Expand Up @@ -369,8 +369,8 @@ def init_pygix(calibration_dict):

if __name__ == '__main__':
if len(sys.argv) is not 2:
print 'usage: process.py recipe.yaml'
print('usage: process.py recipe.yaml')
sys.exit(0)
else:
rp = Processor(sys.argv[1])
rp.process()
rp.process()

0 comments on commit b7bc7a5

Please sign in to comment.