def test_anim_Vsection_subsamp(od_in, subsampMethod): plt.close() if subsampMethod == 'mooring_array': subsamp_kwargs = {'Xmoor': Xmoor, 'Ymoor': Ymoor} else: subsamp_kwargs = {'Xsurv': Xsurv, 'Ysurv': Ysurv} anim = vertical_section(od_in, varName='Temp', subsampMethod=subsampMethod, subsamp_kwargs=subsamp_kwargs, FuncAnimation_kwargs={'repeat': False}) assert isinstance(anim, FuncAnimation)
def test_anim_Vsection_subsamp(od_in, subsampMethod): plt.close() if subsampMethod == "mooring_array": subsamp_kwargs = {"Xmoor": Xmoor, "Ymoor": Ymoor} else: subsamp_kwargs = {"Xsurv": Xsurv, "Ysurv": Ysurv} anim = vertical_section( od_in, varName="Temp", subsampMethod=subsampMethod, subsamp_kwargs=subsamp_kwargs, FuncAnimation_kwargs={"repeat": False}, ) assert isinstance(anim, FuncAnimation)
def test_anim_Vsection(od_in, varName): plt.close() anim = vertical_section(od_in, varName=varName) assert isinstance(anim, FuncAnimation)