mpcontribs-client 5.5.1__py3-none-any.whl → 5.5.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2018,7 +2018,11 @@ class Client(SwaggerClient):
2018
2018
  logger.warning("storing structure properties not supported, yet!")
2019
2019
  del dct["properties"]
2020
2020
  elif is_table:
2021
- table = element if isinstance(element, Table) else Table(element)
2021
+ table = element
2022
+ if not isinstance(table, Table):
2023
+ table = Table(element)
2024
+ table.attrs = element.attrs
2025
+
2022
2026
  table._clean()
2023
2027
  dct = table.to_dict(orient="split")
2024
2028
  elif is_attachment:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mpcontribs-client
3
- Version: 5.5.1
3
+ Version: 5.5.2
4
4
  Summary: client library for MPContribs API
5
5
  Home-page: https://github.com/materialsproject/MPContribs/tree/master/mpcontribs-client
6
6
  Author: Patrick Huck
@@ -0,0 +1,6 @@
1
+ mpcontribs/client/__init__.py,sha256=yBr0o01srpIY363hSje6ncczb7pn-qhDtw72QEb75m8,89603
2
+ mpcontribs_client-5.5.2.dist-info/LICENSE,sha256=5tG0Niaqw2hnuyZZYkRXLSnfVrZA47COwduU_6caPLM,1074
3
+ mpcontribs_client-5.5.2.dist-info/METADATA,sha256=i4MODkxRrCCq-fIFN5MHX_hjrluFfF6sPOZJQRsrNjM,2522
4
+ mpcontribs_client-5.5.2.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
5
+ mpcontribs_client-5.5.2.dist-info/top_level.txt,sha256=t8R5L_Dg9oDQMh2gyRFdZGnrzZsr7OjCBTrhTcmimC8,11
6
+ mpcontribs_client-5.5.2.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- mpcontribs/client/__init__.py,sha256=2yqP2kJpSLzS1KaGySh53l3ZiOxEXBdcF9XqGkdMkbU,89488
2
- mpcontribs_client-5.5.1.dist-info/LICENSE,sha256=5tG0Niaqw2hnuyZZYkRXLSnfVrZA47COwduU_6caPLM,1074
3
- mpcontribs_client-5.5.1.dist-info/METADATA,sha256=EZf7FC1X0DKsPuS8X17FRzFIwloRT8ZPnbPc5qPMvAQ,2522
4
- mpcontribs_client-5.5.1.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
5
- mpcontribs_client-5.5.1.dist-info/top_level.txt,sha256=t8R5L_Dg9oDQMh2gyRFdZGnrzZsr7OjCBTrhTcmimC8,11
6
- mpcontribs_client-5.5.1.dist-info/RECORD,,