def write_frame(grid_obj, path_to_file):
    """ 
        Write framework coordinates into any format supported by ase.

        :type grid_obj:instance of the grid3D class
        :param grid_obj: contains all the information regarding the grid calculation
        :type path_to_file: str
        :param path_to_file: path of the output file including the full extension 
        :raises:
        :rtype: None, just writes the framework coordinates in desired format
        """
    from ase.io import write
    write(path_to_file, grid_obj.ase)
