def testSaveAndLoadPickleTimePart(self): file = io.StandardPickleFile("tmp.pickle") self.analog.save(file) analog2 = analogs.load_vmlist(file, t_start=0, t_stop=100) assert analog2.t_stop == 100
def testSaveAndLoadPickle(self): file = io.StandardPickleFile("tmp.pickle") self.analog.save(file) analog2 = analogs.load_vmlist(file) assert len(analog2) == len(self.analog)