def proto_0222(theABF): """protocol: VC sine sweep.""" abf = ABF(theABF) abf.log.info("analyzing as VC sine sweep") plot = ABFplot(abf) plot.figure_height, plot.figure_width = SQUARESIZE / 2, SQUARESIZE / 2 plot.figure_sweeps() plt.tight_layout() frameAndSave(abf, "VC sine sweep") plt.close('all')
def proto_0201(theABF): """protocol: membrane test.""" abf = ABF(theABF) abf.log.info("analyzing as a membrane test") plot = ABFplot(abf) plot.figure_height, plot.figure_width = SQUARESIZE / 2, SQUARESIZE / 2 plot.figure_sweeps() # save it plt.tight_layout() frameAndSave(abf, "membrane test") plt.close('all')
def proto_unknown(theABF): """protocol: unknown.""" abf = ABF(theABF) abf.log.info("analyzing as an unknown protocol") plot = ABFplot(abf) plot.rainbow = False plot.title = None plot.figure_height, plot.figure_width = SQUARESIZE, SQUARESIZE plot.kwargs["lw"] = .5 plot.figure_chronological() plt.gca().set_axis_bgcolor( '#AAAAAA') # different background if unknown protocol frameAndSave(abf, "UNKNOWN")
def proto_0202(theABF): """protocol: MTIV.""" abf = ABF(theABF) abf.log.info("analyzing as MTIV") plot = ABFplot(abf) plot.figure_height, plot.figure_width = SQUARESIZE, SQUARESIZE plot.title = "" plot.kwargs["alpha"] = .6 plot.figure_sweeps() # frame to uppwer/lower bounds, ignoring peaks from capacitive transients abf.setsweep(0) plt.axis([None, None, abf.average(.9, 1) - 100, None]) abf.setsweep(-1) plt.axis([None, None, None, abf.average(.9, 1) + 100]) # save it plt.tight_layout() frameAndSave(abf, "MTIV") plt.close('all')