This file contains 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 pssepath | |
pssepath.add_pssepath() | |
import psspy | |
import redirect | |
redirect.psse2py() | |
import sys | |
# This command prints results to console |
This file contains 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 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 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 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 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()) | |
} | |
This file contains 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 bs4 import BeautifulSoup | |
fn = r'solution1_printed.htm' | |
f = open(fn, 'r') | |
html = f.read() | |
f.close() | |
soup = BeautifulSoup(html) | |
body = soup.body | |
replaces = [ |
This file contains 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
##################################################################### | |
# olvDemo.py | |
# | |
# Created 12/2009 by Mike Driscoll | |
# | |
# Based on example code from source and | |
# http://objectlistview.sourceforge.net/python/cellEditing.html | |
# | |
##################################################################### | |
import wx |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<script> | |
var folder="https://lh3.googleusercontent.com/-oV4dZvrGpyA/UpYSO1u-fjI/AAAAAAAAJRI/PO6Bq3aYtS0/s16-no/page.png" | |
var page="https://lh3.googleusercontent.com/-oV4dZvrGpyA/UpYSO1u-fjI/AAAAAAAAJRI/PO6Bq3aYtS0/s16-no/page.png" | |
</script> | |
<head> | |
<style> | |
table { | |
border-collapse:collapse; |
This file contains 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
""" | |
TODO: Please Give me a name | |
====================== | |
And a brief description. | |
Input files: | |
- DIFF: file with a set of instruction which area applied to the dna sequences in | |
the REFERENCE file. | |
- REFERENCE: File with reference DNA sequences. |
OlderNewer