Skip to content

Commit

Permalink
replace supervisors lists by sets in notebook 1
Browse files Browse the repository at this point in the history
  • Loading branch information
nurbal committed Nov 16, 2023
1 parent f7a8284 commit d78106a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@
"metadata": {},
"outputs": [],
"source": [
"supervisors = []\n",
"co_supervisors = []\n",
"supervisors = set()\n",
"co_supervisors = set()\n",
"for user in users:\n",
" supervisor = user.mila_ldap.get(\"supervisor\")\n",
" co_supervisor = user.mila_ldap.get(\"co_supervisor\")\n",
" if supervisor:\n",
" supervisors.append(supervisor)\n",
" supervisors.add(supervisor)\n",
" if co_supervisor:\n",
" co_supervisors.append(co_supervisor)\n",
" co_supervisors.add(co_supervisor)\n",
"print(f\"Number of supervisors: {len(supervisors)}\")\n",
"print(f\"Number of co-supervisors: {len(co_supervisors)}\")"
]
Expand Down

0 comments on commit d78106a

Please sign in to comment.