Skip to content

Commit

Permalink
add link to personal homepage in docs_rst/team.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Mar 28, 2023
1 parent 3f35386 commit 1d0a89d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion docs_rst/team.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,18 @@ Lead Maintainers

| **Janosh Riebesell** |janosh|
| University of Cambridge
| Materials Project Staff
.. |janosh| image:: https://cdnjs.cloudflare.com/ajax/libs/octicons/8.5.0/svg/mark-github.svg
:target: https://github.com/materialsproject/pymatgen/pulls?q=is:pr+author:janosh
:width: 16
:height: 16
:alt: GitHub profile for janosh
:alt: janosh GitHub profile

.. |janosh.dev| image:: https://cdnjs.cloudflare.com/ajax/libs/octicons/8.5.0/svg/browser.svg
:target: https://janosh.dev
:width: 16
:height: 16
:alt: janosh homepage

Newest Contributors
===================
Expand Down
6 changes: 3 additions & 3 deletions docs_rst/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ which is a general python supplementary library arising from pymatgen.
The output from an as_dict method is always json/yaml serializable. So if you
want to save a structure, you may do the following::

with open('structure.json','w') as f:
with open('structure.json', 'w') as f:
json.dump(structure.as_dict(), f)

Similarly, to get the structure back from a json, you can do the following to
restore the structure (or any object with a as_dict method) from the json as
restore the structure (or any object with an as_dict method) from the json as
follows::

with open('structure.json', 'r') as f:
with open('structure.json') as f:
d = json.load(f)
structure = Structure.from_dict(d)

Expand Down

0 comments on commit 1d0a89d

Please sign in to comment.