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
'''Pexpect is a Python module for spawning child applications and controlling | |
them automatically. Pexpect can be used for automating interactive applications | |
such as ssh, ftp, passwd, telnet, etc. It can be used to a automate setup | |
scripts for duplicating software package installations on different servers. It | |
can be used for automated software testing. Pexpect is in the spirit of Don | |
Libes' Expect, but Pexpect is pure Python. Other Expect-like modules for Python | |
require TCL and Expect or require C extensions to be compiled. Pexpect does not | |
use C, Expect, or TCL extensions. It should work on any platform that supports | |
the standard Python pty module. The Pexpect interface focuses on ease of use so | |
that simple tasks are easy. |
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
""" | |
Given an arbitrarily nested dictionary, create a PyTables Table | |
Populate a table row given the contents of a dictionary | |
""" | |
import tables | |
import numpy as np | |
import sys |
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 ast import literal_eval | |
from avro.io import DatumReader, DatumWriter, BinaryEncoder, BinaryDecoder | |
from avro.schema import Names, SchemaFromJSONData | |
import yaml | |
import numpy as np | |
class BinaryDatumWriter(object): |
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 subprocess import check_output | |
import os | |
from metakernel import ProcessMetaKernel, REPLWrapper, u | |
class OctaveKernel(ProcessMetaKernel): | |
# Identifiers: | |
implementation = 'octave_metakernel' | |
language = 'octave' |
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
from __future__ import division | |
import numpy as np | |
def phantom3d(phantom='modified-shepp-logan', n=64): | |
"""Three-dimensional Shepp-Logan phantom | |
Can be used to test 3-D reconstruction algorithms. | |
Parameters |
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
# Live streaming 2D monochrome image receiver | |
# We can start this from python to view images | |
# So we get the live image or a current image from Python, and | |
# send it to ImageJ through this interface. Boom! | |
from ij import IJ | |
from ij.process import ByteProcessor, ShortProcessor, LUT | |
import jarray |
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 |