dax/dax_tools_utils.py
def display_pbs_file(self, project, sessions):
        """
        Function to display one of the pbs file created

        :param tests: tests_results object
        :param project: XNAT project
        :param sessions: XNAT sessions
        :return: True if PBS created, False if not.
        """
        pbs_files = list()
        # get a PBS file created:
        for sess in sessions:
            pbs_files.extend(glob.glob(os.path.join(DAX_TEST_DIR,
                             '%s-x-*-x-%s-x-*.pbs' % (project, sess))))

        # if empty raise Error
        if len(pbs_files) == 0:
            print('[ERROR] No PBS file generated in %s by dax_launch'
                  % DAX_TEST_DIR)
            self.inc_error()
            return False
        else:
            print('PBS Example:\n')
            print(open(pbs_files[0], "rb").read())
            return True

        Function to display one of the pbs file created

        :param tests: tests_results object
        :param project: XNAT project
        :param sessions: XNAT sessions
        :return: True if PBS created, False if not.
        
Function to display one of the pbs file created
Function to display one of the pbs file created
def display_pbs_file(self, project, sessions):
        pbs_files = list()
        for sess in sessions:
            pbs_files.extend(glob.glob(os.path.join(DAX_TEST_DIR,
                             '%s-x-*-x-%s-x-*.pbs' % (project, sess))))
        if len(pbs_files) == 0:
            print('[ERROR] No PBS file generated in %s by dax_launch'
                  % DAX_TEST_DIR)
            self.inc_error()
            return False
        else:
            print('PBS Example:\n')
            print(open(pbs_files[0], "rb").read())
            return True
def display_pbs_file ( self , project , sessions ) : pbs_files = list ( ) for sess in sessions : pbs_files . extend ( glob . glob ( os . path . join ( DAX_TEST_DIR , '%s-x-*-x-%s-x-*.pbs' % ( project , sess ) ) ) ) if len ( pbs_files ) == 0 : print ( '[ERROR] No PBS file generated in %s by dax_launch' % DAX_TEST_DIR ) self . inc_error ( ) return False else : print ( 'PBS Example:\n' ) print ( open ( pbs_files [ 0 ] , "rb" ) . read ( ) ) return True
Function to display one of the pbs file created
Function to display one of the pbs file created
"""
        Function to display one of the pbs file created

        :param tests: tests_results object
        :param project: XNAT project
        :param sessions: XNAT sessions
        :return: True if PBS created, False if not.
        """ # get a PBS file created: # if empty raise Error
True if PBS created, False if not.
True if PBS created False if not .
self
project
None
sessions
None
tests
None