materialsproject / api

New API client for the Materials Project
https://materialsproject.github.io/api/
Other
104 stars 38 forks source link

Overload model dict to fix monty dumping #813

Closed munrojm closed 1 year ago

munrojm commented 1 year ago

This PR overloads the dict method of the MPDataDoc pydantic model to use emmet.core.utils.jsanitize. This fixes dumping the documents directly with monty for docs with non-standard key types.