diff --git a/notebooks/tutorial_stats.ipynb b/notebooks/tutorial_stats.ipynb index bdf3c82..4c1b757 100644 --- a/notebooks/tutorial_stats.ipynb +++ b/notebooks/tutorial_stats.ipynb @@ -29,7 +29,7 @@ "source": [ "import json\n", "\n", - "with open('tutorials.json', 'r') as f:\n", + "with open('tutorials.json') as f:\n", " tutorials = json.load(f)['tutorials']\n", "\n", "print(tutorials)" @@ -345,6 +345,7 @@ "metadata": {}, "outputs": [], "source": [ + "# ruff: noqa: E501\n", "def build_new_tutorial(tutorial):\n", " new = {\n", " \"m_def\": \"nomad_aitoolkit.schema.AIToolkitNotebook\",\n", @@ -353,8 +354,8 @@ " 'date': tutorial['updated'],\n", "\n", " 'category': map_categories[tutorial['labels']['category'][0]],\n", - " 'methods': [ {'name': v } for v in tutorial['labels']['ai_methods'] ],\n", - " 'applications': [ {'name': v } for v in tutorial['labels']['application_system'] ],\n", + " 'methods': [{'name': v } for v in tutorial['labels']['ai_methods']],\n", + " 'applications': [{'name': v } for v in tutorial['labels']['application_system']],\n", " 'platform': 'Python'\n", " }\n", "\n",