ajustador.loader

ajustador.loader.Fileinfo

alias of fileinfo

class ajustador.loader.Trace(injection, x, y, features)[source]
register_feature(feature)[source]
time
class ajustador.loader.IVCurve(filename, fileinfo, injection, x, y, features)[source]
>>> mes = loader.IVCurveSeries('docs/static/recording/042811-6ivifcurves_Waves/')
>>> wave = mes[2]
>>> wave.baseline
vartype(-0.080227, 0.000085)
>>> print(wave.baseline)
-0.08023±0.00009
>>> wave.injection
-2.5e-10
>>> wave.time
0.89990000000000003
>>> type(wave.wave)
<class 'numpy.recarray'>
>>> wave.wave.x
array([  0.00000000e+00,   1.00000000e-04,   2.00000000e-04, ...,
         8.99700000e-01,   8.99800000e-01,   8.99900000e-01])
>>> wave.wave.y
array([-0.0799375 , -0.08028125, -0.08028125, ..., -0.08025   ,
       -0.08034375, -0.08034375], dtype=float32)
classmethod load(dirname, filename, IV, IF, time, features)[source]
class ajustador.loader.Attributable(features=None)[source]
class ajustador.loader.Measurement(dirname, params, *, features=None)[source]
waves
class ajustador.loader.IVCurveSeries(dirname, params, *, IV, IF, time, bad_extra=(), features=None)[source]

Load a series of recordings from a directory

>>> mes = loader.IVCurveSeries('docs/static/recording/042811-6ivifcurves_Waves')
>>> mes.waves
array([<ajustador.loader.IVCurve object at ...>,
       <ajustador.loader.IVCurve object at ...>,
       <ajustador.loader.IVCurve object at ...>,
       <ajustador.loader.IVCurve object at ...>,
       <ajustador.loader.IVCurve object at ...>], dtype=object)
>>> hyper = mes[mes.injection <= 0]
>>> depol = mes[mes.injection > 0]
>>> mes.injection
array([  0.00000000e+00,  -5.00000000e-10,  -2.50000000e-10,
         2.20000000e-10,   3.20000000e-10])
>>> hyper.injection
array([  0.00000000e+00,  -5.00000000e-10,  -2.50000000e-10])
>>> depol.injection
array([  2.20000000e-10,   3.20000000e-10])
ajustador.loader.parse_current(text)[source]
class ajustador.loader.CSVSeries(dirname, params, *, features=None)[source]

Load a series of measurements from a CSV file

Each CSV file contains data for multiple injection currents:

Time (ms),-200 pA,-150 pA,-100 pA,-50 pA,0 pA
0,-46.6918945313,-44.2504882813,-48.5229492188,-47.3022460938,-46.38671875
0.1000000015,-46.38671875,-45.7763671875,-46.38671875,-46.9970703125,-49.1333007813

The time and injection values are extracted automatically.