This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Find not Inservice buses attached to InService branches | |
""" | |
try: | |
import pssepath #Daniel Hiller's awesome PSSE environment setup module | |
pssepath.add_pssepath() | |
import psspy | |
except: | |
# Until i get this solved the right way this will have to do | |
PSSE_LOCATION = r"C:\Program Files\PTI\PSSE32\PSSBIN" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Python implementation for Temperature Rise Calculation [1]. | |
The end result of this calculation is a temperature waveform. | |
References | |
------------- | |
[1] matlab implementation from Steven Blair. | |
https://github.com/stevenblair/ieee738matlab | |
""" | |
import numpy as np |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
from numpy import arange, sin, pi | |
import matplotlib | |
matplotlib.use('WXAgg') | |
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas | |
from matplotlib.backends.backend_wx import NavigationToolbar2Wx | |
from matplotlib.figure import Figure |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import argparse | |
import re | |
from numpy import arange, sin, pi | |
import matplotlib | |
import matplotlib.pyplot as plt | |
matplotlib.use('WXAgg') | |
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Show legend to left outside of plot area. | |
""" | |
import sys | |
import matplotlib.pyplot as plt | |
import numpy as np | |
from matplotlib.pyplot import show | |
from matplotlib.ticker import MaxNLocator | |
import matplotlib.gridspec as gridspec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from jinja2 import Template | |
f = open('template.html') | |
html = f.read() | |
f.close() | |
template = Template(html) | |
signals = {'s1': 0.0, | |
's2': 1.0, | |
's3': 'up', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Created by knucklehead on 07-20-2013 | |
#Developed with Python 2.7.3, EXCEL 2013, and PSSE 33.4 | |
#This Module Creates an Excel Spreadsheet Comparing Results of Up to Eight(8) PSSE ACCC Solution Files | |
#Prompts for Contingency Low Bus Voltage Threshold to Report | |
#Option to Enable High Bus Voltage Reporting (GetHighV) | |
#Prompts for Contingency High Bus Voltage Threshold to Report (if GetHighV enabled) | |
#Prompts for Contingency High Branch Flow Threshold to Report | |
#Will Ask for How Many ACCC Files to Compare | |
#Prompts to Input the ACCC Files (Choose Files in the order Desired) | |
#Has Options to Report All Violations, Worst Violations, or Both on EXCEL Sheets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
References | |
-------------- | |
[1] http://stackoverflow.com/questions/16997048/how-does-one-append-large-amounts-of-data-to-a-pandas-hdfstore-and-get-a-natural/16999397#16999397 | |
[2] http://stackoverflow.com/questions/19036380/filtering-a-pytables-table-on-pandas-import | |
[4] http://pandas.pydata.org/pandas-docs/dev/cookbook.html#hdfstore | |
""" | |
# Build pandas dataframe on disk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ ------------------------------------------------- | |
// Setup run folders | |
// ------------------------------------------------- | |
def getRunFoldersFromRootDir(): List[String] = { | |
val rootDir = new File(getSingleInput(Option("Path to the run folder root dir"))) | |
require(rootDir.isDirectory(), rootDir + " was not a directory.") | |
rootDir.listFiles().toList.map(f => f.getAbsolutePath()) | |
} | |
OlderNewer