Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
fekad committed Oct 15, 2024
1 parent 8d2e214 commit 605e634
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions notebooks/tutorial_stats.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 605e634

Please sign in to comment.