@@ -1605,7 +1605,6 @@ def virtualfile_in( # noqa: PLR0912
16051605 x = None ,
16061606 y = None ,
16071607 z = None ,
1608- extra_arrays = None ,
16091608 required_z = False ,
16101609 required_data = True ,
16111610 ):
@@ -1627,9 +1626,6 @@ def virtualfile_in( # noqa: PLR0912
16271626 data input.
16281627 x/y/z : 1-D arrays or None
16291628 x, y, and z columns as numpy arrays.
1630- extra_arrays : list of 1-D arrays
1631- Optional. A list of numpy arrays in addition to x, y, and z.
1632- All of these arrays must be of the same size as the x/y/z arrays.
16331629 required_z : bool
16341630 State whether the 'z' column is required.
16351631 required_data : bool
@@ -1723,8 +1719,6 @@ def virtualfile_in( # noqa: PLR0912
17231719 _data = [np .atleast_1d (x ), np .atleast_1d (y )]
17241720 if z is not None :
17251721 _data .append (np .atleast_1d (z ))
1726- if extra_arrays :
1727- _data .extend (extra_arrays )
17281722 case "vectors" :
17291723 if hasattr (data , "items" ) and not hasattr (data , "to_frame" ):
17301724 # Dict, pandas.DataFrame or xarray.Dataset types.
@@ -1757,18 +1751,24 @@ def virtualfile_from_data(
17571751 instead.
17581752 """
17591753 msg = (
1760- "API function 'Session.virtualfile_from_datae ()' has been deprecated since "
1754+ "API function 'Session.virtualfile_from_data ()' has been deprecated since "
17611755 "v0.13.0 and will be removed in v0.15.0. Use 'Session.virtualfile_in()' "
17621756 "instead."
17631757 )
17641758 warnings .warn (msg , category = FutureWarning , stacklevel = 2 )
1759+ # Session.virtualfile_in no longer has the 'extra_arrays' parameter.
1760+ if data is None and extra_arrays is not None :
1761+ data = [np .atleast_1d (x ), np .atleast_1d (y )]
1762+ if z is not None :
1763+ data .append (np .atleast_1d (z ))
1764+ data .extend (extra_arrays )
1765+ x , y , z = None , None , None
17651766 return self .virtualfile_in (
17661767 check_kind = check_kind ,
17671768 data = data ,
17681769 x = x ,
17691770 y = y ,
17701771 z = z ,
1771- extra_arrays = extra_arrays ,
17721772 required_z = required_z ,
17731773 required_data = required_data ,
17741774 )
0 commit comments