(self, filep, pretty=True)
Write metadata to a file.

        Parameters
        ----------
        filep : object
            File pointer or something that json.dump() can handle.
        pretty : bool, default True
            When True will write more human-readable output, otherwise will be flat JSON.
Write metadata to a file.
Write metadata to a file .
def dump(self, filep, pretty=True):
        '''
        Write metadata to a file.

        Parameters
        ----------
        filep : object
            File pointer or something that json.dump() can handle.
        pretty : bool, default True
            When True will write more human-readable output, otherwise will be flat JSON.
        '''
        json.dump(
            self.ordered_metadata(),
            filep,
            indent=4 if pretty else None,
            separators=(',', ': ') if pretty else None,
        )
def dump ( self , filep , pretty = True ) : json . dump ( self . ordered_metadata ( ) , filep , indent = 4 if pretty else None , separators = ( ',' , ': ' ) if pretty else None , )