#NEWLINE# def printStages( self , name ) : #NEWLINE# #INDENT# 'Prints stages to a file, stage info to stdout' #NEWLINE# fileForPrinting = os . path . abspath ( ( ( ( os . curdir + '/' ) + str ( name ) ) + '_pipeline_stages.txt' ) ) #NEWLINE# pf = open ( fileForPrinting , 'w' ) #NEWLINE# for i in range ( len ( self . stages ) ) : #NEWLINE# #INDENT# pf . write ( ( ( ( str ( i ) + '  ' ) + str ( self . stages [ i ] ) ) + '\n' ) ) #NEWLINE# #UNINDENT# pf . close ( ) #NEWLINE# print ( 'Total number of stages in the pipeline: ' , len ( self . stages ) )