def calcgbar(Ip, Vclamp, A):
    """Function to calculate a lower bound on the cell's maximum conductance from its peak current
    Ip      :=  Peak current [nA]
    Vclamp  :=  Clamp Voltage [mV]
    A       :=  Cell surface area [um^2]
    return gbar [pS/um^2]"""
    Gmax = Ip / Vclamp
    gbar = Gmax / A
    return gbar * 1000000.0
