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 numpy as np | |
import json | |
import sys | |
try: | |
import cPickle as pickle | |
except ImportError: | |
import pickle | |
if sys.version.startswith('3'): |
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
==15942== Memcheck, a memory error detector | |
==15942== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. | |
==15942== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info | |
==15942== Command: /usr/bin/python skimage/restoration/tests/test_unwrap.py | |
==15942== | |
==15942== Invalid read of size 4 | |
==15942== at 0x56E90A: PyObject_GC_Del (in /usr/bin/python2.7) | |
==15942== by 0x538FC6: ??? (in /usr/bin/python2.7) | |
==15942== by 0x54B7B5: ??? (in /usr/bin/python2.7) | |
==15942== by 0x579F2C: ??? (in /usr/bin/python2.7) |
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
diff --git a/setup.py b/setup.py | |
index 01b6962..fa3f50e 100755 | |
--- a/setup.py | |
+++ b/setup.py | |
@@ -20,14 +20,29 @@ DOWNLOAD_URL = 'http://github.com/scikit-image/scikit-image' | |
VERSION = '0.11dev' | |
PYTHON_VERSION = (2, 6) | |
-import re | |
import os |
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
""" | |
AIMQ messaging: | |
Start with a dictionary | |
Convert to raw Avro | |
Send raw Avro over the wire | |
Convert to dict on the other end |
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 pandas as pd | |
import numpy as np | |
def read_csv(fname, **kwargs): | |
df = pd.read_csv(fname, **kwargs) | |
arrs = [df.icol(i).data for i in range(df.shape[1])] | |
dtype = [(h, df.dtypes[h]) for h in df.columns] | |
arr = np.rec.fromarrays(arrs, dtype=dtype) | |
arr.columns = df.columns.tolist() |
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
""" | |
Rectangle Plugin | |
================= | |
This is a demo adapted from a `matplotlib gallery example | |
<http://matplotlib.org/examples/shapes_and_collections/path_patch_demo.html>`_ | |
This example adds a custom D3 plugin allowing the user to drag a | |
rectangle and adjust the rectangle shape. | |
Use the toolbar buttons at the bottom-right of the plot to enable zooming |
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
from pymongo.son_manipulator import SONManipulator | |
from bson import Binary | |
import numpy as np | |
import pickle | |
NUMPY_SUBTYPE = 128 | |
class Transform(SONManipulator): |
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 bson import BSON, Binary | |
import numpy as np | |
import pickle | |
import struct | |
NUMPY_SUBTYPE = 128 | |
def bson_dump(obj): |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.