scraper/doecode/__init__.py
def process_json(filename):
    """
    Converts a DOE CODE .json file into DOE CODE projects
    Yields DOE CODE records from a DOE CODE .json file
    """

    logger.debug('Processing DOE CODE json: %s', filename)

    doecode_json = json.load(open(filename))

    for record in doecode_json['records']:
        yield record
def process_json(filename):
    logger.debug('Processing DOE CODE json: %s', filename)

    doecode_json = json.load(open(filename))

    for record in doecode_json['records']:
        yield record
def process_json ( filename ) : logger . debug ( 'Processing DOE CODE json: %s' , filename ) doecode_json = json . load ( open ( filename ) ) for record in doecode_json [ 'records' ] : yield record
Converts a DOE CODE .json file into DOE CODE projects
    Yields DOE CODE records from a DOE CODE .json file
Converts a DOE CODE . json file into DOE CODE projects Yields DOE CODE records from a DOE CODE . json file