Skip to content

Commit

Permalink
Merge pull request #1624 from materialsproject/drop_props
Browse files Browse the repository at this point in the history
client: drop new structure properties
  • Loading branch information
tschaume authored Sep 13, 2023
2 parents d7493aa + f55fd6d commit fedafe7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mpcontribs-client/mpcontribs/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1898,6 +1898,11 @@ def submit_contributions(

if not dct.get("charge"):
del dct["charge"]

if "properties" in dct:
if dct["properties"]:
logger.warning("storing structure properties not supported, yet!")
del dct["properties"]
elif is_table:
element.fillna('', inplace=True)
element.index = element.index.astype(str)
Expand Down

0 comments on commit fedafe7

Please sign in to comment.