def load_object(self, filename):
        r"""
        Loads a single object from a file

        Parameters
        ----------

        """
        p = Path(filename)
        with open(p, 'rb') as f:
            d = pickle.load(f)
        obj = self._new_object(objtype=p.suffix.strip('.'),
                               name=p.name.split('.')[0])
        obj.update(d)
def load_object ( self , filename ) : p = Path ( filename ) with open ( p , 'rb' ) as f : d = pickle . load ( f ) obj = self . _new_object ( objtype = p . suffix . strip ( '.' ) , name = p . name . split ( '.' ) [ 0 ] ) obj . update ( d )
r"""
        Loads a single object from a file

        Parameters
        ----------