diff --git a/mpcontribs-portal/notebooks/contribs.materialsproject.org/cards.ipynb b/mpcontribs-portal/notebooks/contribs.materialsproject.org/cards.ipynb index aa2aa7f9f..a073261df 100644 --- a/mpcontribs-portal/notebooks/contribs.materialsproject.org/cards.ipynb +++ b/mpcontribs-portal/notebooks/contribs.materialsproject.org/cards.ipynb @@ -174,10 +174,8 @@ " root = column.split(\".\", 1)[0]\n", " root_data_columns[root].add(clean_unit)\n", " has_component[\"data\"] = True\n", - " else:\n", - " for component in COMPONENTS[1:]:\n", - " if path == component:\n", - " has_component[component] = True" + " elif path in COMPONENTS[1:]:\n", + " has_component[component] = True" ] }, {