示例#1
0
    def load(self, savefile=None):
        ''' This is basically make it so that gather() and load() have the same effect.

            It does not keep actuation or measurement members, only whatever was put in self.data

            Args:
                savefile (str/Path): file to load
        '''
        if savefile is None:
            if self.savefile is not None:
                savefile = self.savefile
            else:
                raise ValueError('No save file specified')
        self.data = io.loadPickle(savefile)
示例#2
0
def loadPickle(savefile):
    try:
        data = io.loadPickleGzip(savefile)
    except FileNotFoundError:
        data = io.loadPickle(savefile)
    return data
示例#3
0
    def loadObj(cls, savefile):
        ''' This is basically make it so that gather() and load() have the same effect.

            It does not keep actuation or measurement members, only whatever was put in self.data
        '''
        return io.loadPickle(savefile)