Skip to content

Commit

Permalink
Merge pull request #315 from openego/features/add-nbstripout
Browse files Browse the repository at this point in the history
Features/add nbstripout
  • Loading branch information
khelfen committed Sep 26, 2022
2 parents 04fcec4 + a1710f5 commit 3384af9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ repos:
# rev: pylint-2.6.0
# hooks:
# - id: pylint
- repo: https://github.com/kynan/nbstripout
rev: 0.6.0
hooks:
- id: nbstripout
3 changes: 2 additions & 1 deletion examples/edisgo_simple_example.ipynb
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@
"import networkx as nx\n",
"import pandas as pd\n",
"\n",
"from edisgo import EDisGo"
"from edisgo import EDisGo\n",
"from edisgo.tools.logger import setup_logger"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/example_grid_reinforcement.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def run_example():
setup_logger(
loggers=[
{"name": "root", "file_level": None, "stream_level": "warning"},
{"name": "edisgo", "file_level": None, "stream_level": "info"}
{"name": "edisgo", "file_level": None, "stream_level": "info"},
]
)

Expand Down
5 changes: 1 addition & 4 deletions examples/plot_example.ipynb
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": true,
"tags": []
},
"outputs": [],
Expand Down Expand Up @@ -332,9 +331,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": true
},
"metadata": {},
"outputs": [],
"source": [
"plot_dash(edisgo_objects=edisgo_analyzed)\n",
Expand Down

0 comments on commit 3384af9

Please sign in to comment.