Skip to content

JSON Dump Error #43

@felipunky

Description

@felipunky

Hi guys thanks for all the work on the amazing tools.

I wanted to report a bug I encountered in Hydra's writeMetadataFile function, I guess the problem was something related to the encodings of ascii characters or something like that.

This function works:

def writeMetadataFile(fileName, repoTargetFolder, metaDataDict):
    jsonFilePath = repoTargetFolder + '\\' + 'input.json'
    try:
        with open(jsonFilePath, "w") as outfile:
            json.dump(metaDataDict, outfile, ensure_ascii=False)
    except:
        print("Oops!",sys.exc_info()[0],"occured.")
    return jsonFilePath

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions