__author__ = 'Samuel Gratzl'

import numpy as np
import tables

class NumpyTablesEncoder(object):
  def __contains__(self, obj):
    if isinstance(obj, tables.Array):
      return True
    return False

  def __call__(self, obj, base_encoder):
    if isinstance(obj, tables.Array):
      if obj.ndim == 1:
        return [x for x in obj]
      else:
        return [base_encoder.default(obj[i]) for i in range(obj.shape[0])]
    return None

n = NumpyTablesEncoder()

def create():
  return n
@@ -63,21 +63,16 @@
 %0A%0Aclass 
-Numpy
 TablesEn
@@ -438,13 +438,8 @@
 n = 
-Numpy
 Tabl

rename json encoder