def save_fits(self, *args, **kwargs):

        self.set_file_status('instructions')

        print("Enter filename: ", end='')
        try:
            plot_name = raw_input()
        except __HOLE__:
            plot_name = input()

        if self.pv_slice is None:
            return

        from astropy.io import fits
        self.pv_slice.writeto(plot_name, clobber=True)
        print("Saved file to: ", plot_name)

        self.set_file_status('saved', filename=plot_name)
dataset/ETHPy150Open glue-viz/glue/glue/external/pvextractor/gui.py/PVSlicer.save_fits