Skip to content

Import Materials from Standata

1. Introduction

Import materials from the Mat3ra Standard Materials Dataset (Standata) by name or by category.

2. Open the notebook

In JupyterLite, the notebook is made/import_materials_from_standata.ipynb, entry 6.1.1 "Import from Mat3ra Standata" of made/Introduction.ipynb.

3. Set the parameters

The notebook has no parameter cell; the names and categories are in the code. Cell 2.1 lists the names of the available materials. Cell 2.2 selects a material by its name or a part of it, "Graphene" by default: get_by_name returns every match and get_by_name_first_match the first one. Cell 2.3 selects the materials of the categories given to get_by_categories, "2D" and "3D", "Insulator" by default.

4. Run and read the result

Run the notebook with Run > Run All. The notebook shows the selected materials and passes the materials of the two categories back with set_materials, as in Structure Notebooks.

5. Interactive JupyterLite notebook

The interactive JupyterLite notebook for importing materials from Standata can be accessed below.