def to_shapefile(self, filename):

        import warnings
        warnings.warn("Deprecation warning: to_shapefile() is deprecated. use .export()")
        #from flopy.utils.flopy_io import write_grid_shapefile, shape_attr_name
        #name = shape_attr_name(self.name, keep_layer=True)
        #write_grid_shapefile(filename, self.model.dis.sr, {name: self.array})
        self.export(filename)
Export 2-D model data to a shapefile (as polygons) of self.array
dataset/ETHPy150Open modflowpy/flopy/flopy/utils/util_array.py/Util2d.to_shapefile