In [4]:
%load_ext autoreload
%autoreload 2
from extremefill2D.tools import getSMTRecords, smt_ipy_table
records = getSMTRecords(path='.', tags=['testrun'])
for r in records:
    print r.label


The autoreload extension is already loaded. To reload it, use:
  %reload_ext autoreload
89789c4429dd

In [5]:
smt_ipy_table(records,
              fields=['label', 'timestamp', 'parameters', 'duration', 'version', 'tags'],
              parameters=['kPlus', 'kMinus', 'appliedPotential', 'bulkSuppressor', 'Nx'])


---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-5-0fc0f9eb67bc> in <module>()
      1 smt_ipy_table(records,
      2               fields=['label', 'timestamp', 'parameters', 'duration', 'version', 'tags'],
----> 3               parameters=['kPlus', 'kMinus', 'appliedPotential', 'bulkSuppressor', 'Nx'])

/home/main/extremefill2D/extremefill2D/tools.pyc in smt_ipy_table(records, fields, parameters)
    181 
    182 def smt_ipy_table(records, fields, parameters=[]):
--> 183     from ipy_table import make_table
    184     import ipy_table
    185     table = [[field.title() for field in fields]]

ImportError: No module named ipy_table

In [8]:
%matplotlib inline 
from extremefill2D.contourViewer import ContourViewer
import matplotlib.pyplot as plt
import numpy as np

record = records[0]
fig = plt.figure(figsize=(2.5, 8), dpi=200)
ax = plt.subplot(1, 1, 1)
viewer = ContourViewer(record, ax=ax)
all_spines = ['top', 'bottom', 'right', 'left']
for spine in all_spines:
    ax.spines[spine].set_visible(False)
#plt.text(0.32, 0.01, '$\\texttt{{{0}}}$'.format(record.label[:8]), fontsize=12, transform=ax.transAxes)
viewer.plot(times = np.arange(10) * 200. / 9. , mirror=True, cutoff=True, cutoffvalue=0., show=False)



In [ ]: