def convertKIDSBuildFile(self, kidsFile): from KIDSBuildParser import KIDSBuildParser, outputMetaDataInJSON assert os.path.exists(kidsFile) """ write KIDS metadata file """ kidsParser = KIDSBuildParser(None) """ do not parse the routine part """ kidsParser.unregisterSectionHandler(KIDSBuildParser.ROUTINE_SECTION) kidsParser.parseKIDSBuild(kidsFile) logger.info("output meta data as %s" % (kidsFile + ".json")) outputMetaDataInJSON(kidsParser, kidsFile + ".json") self.convertToSha1File(kidsFile)
def convertKIDSBuildFile(self, kidsFile): from KIDSBuildParser import KIDSBuildParser, outputMetaDataInJSON assert os.path.exists(kidsFile) """ write KIDS metadata file """ kidsParser = KIDSBuildParser(None) """ do not parse the routine part """ kidsParser.unregisterSectionHandler(KIDSBuildParser.ROUTINE_SECTION) kidsParser.parseKIDSBuild(kidsFile) logger.info("output meta data as %s" % (kidsFile+".json")) outputMetaDataInJSON(kidsParser, kidsFile+".json") self.convertToSha1File(kidsFile)