def to_shapefile(self, filename, kper=None):
    "\n        Export stress period boundary condition (MfList) data for a specified\n        stress period\n\n        Parameters\n        ----------\n        filename : str\n            Shapefile name to write\n        kper : int\n            MODFLOW zero-based stress period number to return. (default is None)\n\n        Returns\n        ----------\n        None\n\n        See Also\n        --------\n\n        Notes\n        -----\n\n        Examples\n        --------\n        >>> import flopy\n        >>> ml = flopy.modflow.Modflow.load('test.nam')\n        >>> ml.wel.to_shapefile('test_hk.shp', kper=1)\n        "
    import warnings
    warnings.warn('Deprecation warning: to_shapefile() is deprecated. use .export()')
    self.export(filename, kper=kper)
Export stress period boundary condition (MfList) data for a specified
stress period

Parameters
----------
filename : str
    Shapefile name to write
kper : int
    MODFLOW zero-based stress period number to return. (default is None)

Returns
----------
None

See Also
--------

Notes
-----

Examples
--------
>>> import flopy
>>> ml = flopy.modflow.Modflow.load('test.nam')
>>> ml.wel.to_shapefile('test_hk.shp', kper=1)
def to_shapefile(self, filename, kper=None):
    "\n        Export stress period boundary condition (MfList) data for a specified\n        stress period\n\n        Parameters\n        ----------\n        filename : str\n            Shapefile name to write\n        kper : int\n            MODFLOW zero-based stress period number to return. (default is None)\n\n        Returns\n        ----------\n        None\n\n        See Also\n        --------\n\n        Notes\n        -----\n\n        Examples\n        --------\n        >>> import flopy\n        >>> ml = flopy.modflow.Modflow.load('test.nam')\n        >>> ml.wel.to_shapefile('test_hk.shp', kper=1)\n        "
    import warnings
    warnings.warn('Deprecation warning: to_shapefile() is deprecated. use .export()')
    self.export(filename, kper=kper)