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
#!python | |
# Multi dimensional array with automatic expansion | |
# compatible with masked arrays | |
import numpy as np | |
# convert a flat index to a dimension indexes | |
# 7 => (1,1,1) | |
def static_index_to_key(itemsize, strides, index): |
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 socketserver | |
import socket | |
import struct | |
import json | |
import collections | |
class IPCError(Exception): | |
pass |