Skip to content

Commit

Permalink
Remove the load_profile warning by move it to front (aiidalab#599)
Browse files Browse the repository at this point in the history
The problem is introduced by aiidalab#593, where I move the load_profile to after the import of AWB.
  • Loading branch information
unkcpz committed Jan 25, 2024
1 parent d70ad69 commit ff22fd1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 18 deletions.
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ repos:
- id: nbqa-isort
args: [--profile=black]
- id: nbqa-ruff
# suppress E402
args: [--ignore=E402]

- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
Expand Down
29 changes: 11 additions & 18 deletions qe.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@
"document.title='AiiDAlab QE app'"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from aiida import load_profile\n",
"\n",
"load_profile(); # noqa: E402"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -39,24 +50,6 @@
"from aiidalab_qe.version import __version__"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from aiida import load_profile\n",
"\n",
"load_profile();"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit ff22fd1

Please sign in to comment.