In [1]:
import assaytools

In [3]:
assaytools.platereader.etree.


Out[3]:
<module 'lxml.etree' from '/Users/joshuafass/anaconda/envs/py27/lib/python2.7/site-packages/lxml/etree.so'>

In [4]:
assaytools.test()


---------------------------------------------------------------------------
Exception                                 Traceback (most recent call last)
<ipython-input-4-e1939b9e7a1d> in <module>()
----> 1 assaytools.test()

/Users/joshuafass/anaconda/envs/py27/lib/python2.7/site-packages/assaytools-0.1.0-py2.7.egg/assaytools/__init__.pyc in test(label, verbose)
     18         Verbosity value for test outputs, in the range 1-10. Default is 2.
     19     """
---> 20     raise Exception("Eventually, this will test the package, but this has not currently been implemented.")
     21 
     22     import assaytools

Exception: Eventually, this will test the package, but this has not currently been implemented.

In [5]:
from assaytools import bindingmodels

In [6]:
comp_bind = bindingmodels.CompetitiveBindingModel()

In [9]:
import numpy as np
import numpy.random as npr
n_ligands=100
ka = np.exp(1+npr.rand(n_ligands))
receptor_conc = 10.0
ligand_conc = np.ones(n_ligands)
sample_volume = 1.0

In [11]:
comp_bind.equilibrium_concentrations(ka,receptor_conc,ligand_conc,sample_volume)


---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-11-45c25c46f1da> in <module>()
      1 import numpy
----> 2 comp_bind.equilibrium_concentrations(ka,receptor_conc,ligand_conc,sample_volume)

/Users/joshuafass/anaconda/envs/py27/lib/python2.7/site-packages/assaytools-0.1.0-py2.7.egg/assaytools/bindingmodels.pyc in equilibrium_concentrations(cls, Ka_n, C0_R, C0_Ln, V, c0)
    275       #print ""
    276 
--> 277       c = numpy.zeros([nspecies], numpy.float64)
    278       sorted_indices = numpy.argsort(-x_Ln)
    279       for n in range(nspecies):

NameError: global name 'numpy' is not defined

In [ ]: