Commit 024a4e96 authored by sp2668's avatar sp2668

cleaned tutorial-6

parent 3756f002
......@@ -7,3 +7,4 @@
**/__pycache__/
*.lp
*.slides.html
tutorial-6/network_data/
......@@ -3,9 +3,11 @@ channels:
- conda-forge
- defaults
dependencies:
- basemap # check: conda install -c anaconda basemap
- jupyter
- matplotlib
- nb_conda
- netcdf4
- numpy
- pandas
- python
......
No preview for this file type
......@@ -766,9 +766,8 @@
}
],
"metadata": {
"celltoolbar": "Slideshow",
"kernelspec": {
"display_name": "Python [default]",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
......@@ -782,7 +781,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.6.4"
},
"nav_menu": {},
"toc": {
......
No preview for this file type
This diff is collapsed.
This diff is collapsed.
......@@ -8,6 +8,7 @@ import matplotlib as mpl
import matplotlib.pyplot as plt
import matplotlib.lines as mlines
from sklearn.cluster import KMeans, SpectralClustering
from mpl_toolkits.basemap import Basemap
### FUNCTIONS
......@@ -194,7 +195,7 @@ def plot_line_loading_bus_status(network):
bus_status.ponpmax.loc[i]=bus_status.p.loc[i]/bus_status.pmax.loc[i]
except:
print(i)
print("Error at {}".format(i))
bus_color=(bus_status.status/network.loads_t.p_set.values[0]).values
bus_color[bus_color>1.5]=1.5
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment