def _write(self, session, openFile, replaceParamFile):
        """
        Channel Input File Write to File Method
        """
        # Write lines
        openFile.write('GSSHA_CHAN\n')

        alpha = vwp(self.alpha, replaceParamFile)
        try:
            openFile.write('ALPHA%s%.6f\n' % (' ' * 7, alpha))
        except:
            openFile.write('ALPHA%s%s\n' % (' ' * 7, alpha))

        beta = vwp(self.beta, replaceParamFile)
        try:
            openFile.write('BETA%s%.6f\n' % (' ' * 8, beta))
        except:
            openFile.write('BETA%s%s\n' % (' ' * 8, beta))

        theta = vwp(self.theta, replaceParamFile)
        try:
            openFile.write('THETA%s%.6f\n' % (' ' * 7, theta))
        except:
            openFile.write('THETA%s%s\n' % (' ' * 7, theta))

        openFile.write('LINKS%s%s\n' % (' ' * 7, self.links))
        openFile.write('MAXNODES%s%s\n' % (' ' * 4, self.maxNodes))

        # Retrieve StreamLinks
        links = self.getOrderedLinks(session)

        self._writeConnectivity(links=links,
                                fileObject=openFile)
        self._writeLinks(links=links,
                         fileObject=openFile,
                         replaceParamFile=replaceParamFile)
def _write ( self , session , openFile , replaceParamFile ) : openFile . write ( 'GSSHA_CHAN\n' ) alpha = vwp ( self . alpha , replaceParamFile ) try : openFile . write ( 'ALPHA%s%.6f\n' % ( ' ' * 7 , alpha ) ) except : openFile . write ( 'ALPHA%s%s\n' % ( ' ' * 7 , alpha ) ) beta = vwp ( self . beta , replaceParamFile ) try : openFile . write ( 'BETA%s%.6f\n' % ( ' ' * 8 , beta ) ) except : openFile . write ( 'BETA%s%s\n' % ( ' ' * 8 , beta ) ) theta = vwp ( self . theta , replaceParamFile ) try : openFile . write ( 'THETA%s%.6f\n' % ( ' ' * 7 , theta ) ) except : openFile . write ( 'THETA%s%s\n' % ( ' ' * 7 , theta ) ) openFile . write ( 'LINKS%s%s\n' % ( ' ' * 7 , self . links ) ) openFile . write ( 'MAXNODES%s%s\n' % ( ' ' * 4 , self . maxNodes ) ) links = self . getOrderedLinks ( session ) self . _writeConnectivity ( links = links , fileObject = openFile ) self . _writeLinks ( links = links , fileObject = openFile , replaceParamFile = replaceParamFile )
Channel Input File Write to File Method