Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

emfcamp/power

Repository files navigation

EMF2016 Power stuff

Files

  • nodes.json - nodes in the network
  • links.json - links (cables)
  • def_node.json - definitions of distros etc
  • def_link.json - definitions of links

Requirements

python needs networkx and decorator

pip install networkx decorator

If you want to go stright to pdf you also need Ghostscript-9.19

macOS can get it from http://pages.uoregon.edu/koch/

Generate

Straight to pdf

./diagram.py | unflatten -l 3  | dot -Tps2 | ps2pdf - > power.pdf

or on Mac, preview can convert ps to pdf, with out the need to install ghostscript

./diagram.py | unflatten -l 3  | dot -Tps2 > power.ps

Labels

Requirments

pip install reportlab pylabels

Run

./node-labels.py

output is in node-labels.py

About

Various scripts related to power grid

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages