Пример #1
0
        nTerror("Failed to init old project")
        return True
    # end if
    archive_id = getArchiveIdFromDirectoryName( os.getcwd() )
    # Derives the related entry codes in PDB and BMRB.
    project.molecule.setArchiveId( archive_id )
    if True: # DEFAULT: True 
        nTmessage("Updating project html")
    #    project.runCingChecks(toFile=True, ranges=ranges)
        project.setupHtml()
        project.generateHtml(htmlOnly = htmlOnly)
        project.renderHtml()
    # end if
    project.save()
    nTmessage("Done with updateProjectHtml")
# end def

if __name__ == '__main__':
    # Give it a good header and footer for automated checking later on.
    starttime = time.time()    
    nTmessage( header )
    nTmessage( getStartMessage())
    pdb_id = sys.argv[1]
    cing.verbosity = int( sys.argv[2] )
    nTmessage( 'Arguments: %s' % str(sys.argv) )
    if updateProjectHtml(pdb_id, ''):
        nTerror("Failed updateProjectHtml")
    # end if
    nTmessage( getStopMessage(starttime))
# end if
        
Пример #2
0
    entry_code = '.'
    if is_pdb_code(destination): # needs to be first argument if this main is to be used by doScriptOnEntryList.
        entry_code = destination
        hasPdbId = True
        destination = sys.argv[2]
    # end if

    startArgListOther = 2
    if hasPdbId:
        startArgListOther = 3
    argListOther = []
    if len(sys.argv) > startArgListOther:
        argListOther = sys.argv[startArgListOther:]
    nTmessage('\nGoing to destination: %s with(out) on entry_code %s with extra arguments %s' % (
                destination, entry_code, str(argListOther)))

    try:
        if destination == 'fcProcessEntry':
            ccpnTgzFile = argListOther[0]
            outputCcpnTgzFile = argListOther[1]
            functionToRun = argListOther[2]
            if fcProcessEntry( entry_code, ccpnTgzFile, outputCcpnTgzFile, functionToRun ):
                nTerror("Failed to fcProcessEntry")
        else:
            nTerror("Unknown destination: %s" % destination)
    except:
        nTtracebackError()
    finally:
        nTmessage(getStopMessage(cing.starttime))

Пример #3
0
    # end if
    archive_id = getArchiveIdFromDirectoryName(os.getcwd())
    # Derives the related entry codes in PDB and BMRB.
    project.molecule.setArchiveId(archive_id)
    if True:  # DEFAULT: True
        nTmessage("Updating project html")
        #    project.runCingChecks(toFile=True, ranges=ranges)
        project.setupHtml()
        project.generateHtml(htmlOnly=htmlOnly)
        project.renderHtml()
    # end if
    project.save()
    nTmessage("Done with updateProjectHtml")


# end def

if __name__ == '__main__':
    # Give it a good header and footer for automated checking later on.
    starttime = time.time()
    nTmessage(header)
    nTmessage(getStartMessage())
    pdb_id = sys.argv[1]
    cing.verbosity = int(sys.argv[2])
    nTmessage('Arguments: %s' % str(sys.argv))
    if updateProjectHtml(pdb_id, ''):
        nTerror("Failed updateProjectHtml")
    # end if
    nTmessage(getStopMessage(starttime))
# end if