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
        #
        # array_dict = {}
        # for kper in range(self.model.nper):
        #     u2d = self[kper]
        #     name = '{}_{:03d}'.format(shape_attr_name(u2d.name), kper + 1)
        #     array_dict[name] = u2d.array
        # write_grid_shapefile(filename, self.model.dis.sr, array_dict)
        self.export(filename)
Export transient 2D data to a shapefile (as polygons). Adds an
dataset/ETHPy150Open modflowpy/flopy/flopy/utils/util_array.py/Transient2d.to_shapefile