Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
$ pytest -v -k PyniniIOTest | |
======================================================================= test session starts ======================================================================== | |
platform darwin -- Python 2.7.14, pytest-3.5.0, py-1.5.3, pluggy-0.6.0 -- /Users/bob/analyze/geocoding_307_vocab-graph/env/bin/python2.7 | |
cachedir: .pytest_cache | |
rootdir: /Users/bob/analyze/geocoding_307_vocab-graph/Pynini, inifile: | |
collected 158 items / 154 deselected | |
pynini_test.py::PyniniIOTest::testFileIO FAILED [ 25%] | |
pynini_test.py::PyniniIOTest::testGarbageReadRaisesFstIOError PASSED [ 50%] | |
pynini_test.py::PyniniIOTest::testPickleIO FAILED [ 75%] |
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
function tabtitle(){ | |
REPO_NAME=`git rev-parse --show-toplevel 2> /dev/null | awk -F'/' '{print $NF}'`; | |
if [ -z "$REPO_NAME" ] | |
then | |
echo "" | |
else | |
echo "[$REPO_NAME] " | |
fi | |
} | |
if [ $ITERM_SESSION_ID ]; then |
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
<div style="overflow: hidden;"><iframe src="http://assets.sunlightfoundation.com.s3.amazonaws.com/blog/azavea_maps/total.html" height="703" width="650"></iframe></div> |
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
<iframe src="http://assets.sunlightfoundation.com.s3.amazonaws.com/blog/azavea_maps/pop.html" height="703" width="650"></iframe> |
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
<iframe src="http://assets.sunlightfoundation.com.s3.amazonaws.com/blog/azavea_maps/indep.html" height="653" width="650"></iframe> |
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
<iframe src="http://assets.sunlightfoundation.com.s3.amazonaws.com/blog/azavea_maps/pres.html" height="703" width="650"></iframe> |
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 json | |
from pprint import pprint as pp | |
def jenks_matrices_init(data, n_classes): | |
#fill the matrices with data+1 arrays of n_classes 0s | |
lower_class_limits = [] | |
variance_combinations = [] | |
for i in xrange(0, len(data)+1): | |
temp1 = [] | |
temp2 = [] |
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
def omnihash(obj): | |
""" recursively hash unhashable objects """ | |
if isinstance(obj, set): | |
return hash(frozenset(omnihash(e) for e in obj)) | |
elif isinstance(obj, (tuple, list)): | |
return hash(tuple(omnihash(e) for e in obj)) | |
elif isinstance(obj, dict): | |
return hash(frozenset((k, omnihash(v)) for k, v in obj.items())) | |
else: | |
return hash(obj) |
NewerOlder