''' This script serves for empty BCS records generating Usage: python generate.py where > EntityNum is number of required entity records > RuleNum is number of required rule records > OutputFile is output file name Example: python generate.py 10 5 output.txt ''' import sys EntityNum = int(sys.argv[-3]) RuleNum = int(sys.argv[-2]) OutputFile = sys.argv[-1] outF = open(OutputFile,'w') outF.write('# Entities\n\n') for i in range(EntityNum): outF.write('ENTITY ID:\nENTITY NAME:\nCLASSIFICATION:\nLOCATIONS:\nSTATES:\nCOMPOSITION:\nDESCRIPTION:\nLINKS:\nORGANISM:\nNOTES:\n\n') outF.write('# Rules\n\n') for i in range(RuleNum): outF.write('RULE ID:\nRULE EQUATION:\nMODIFIER:\nRULE NAME:\nCLASSIFICATION:\nDESCRIPTION:\nLINKS:\nNOTES:\n\n') outF.close()