@@ -1605,7 +1605,6 @@ def virtualfile_in( # noqa: PLR0912
1605
1605
x = None ,
1606
1606
y = None ,
1607
1607
z = None ,
1608
- extra_arrays = None ,
1609
1608
required_z = False ,
1610
1609
required_data = True ,
1611
1610
):
@@ -1627,9 +1626,6 @@ def virtualfile_in( # noqa: PLR0912
1627
1626
data input.
1628
1627
x/y/z : 1-D arrays or None
1629
1628
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.
1633
1629
required_z : bool
1634
1630
State whether the 'z' column is required.
1635
1631
required_data : bool
@@ -1723,8 +1719,6 @@ def virtualfile_in( # noqa: PLR0912
1723
1719
_data = [np .atleast_1d (x ), np .atleast_1d (y )]
1724
1720
if z is not None :
1725
1721
_data .append (np .atleast_1d (z ))
1726
- if extra_arrays :
1727
- _data .extend (extra_arrays )
1728
1722
case "vectors" :
1729
1723
if hasattr (data , "items" ) and not hasattr (data , "to_frame" ):
1730
1724
# Dict, pandas.DataFrame or xarray.Dataset types.
@@ -1757,18 +1751,24 @@ def virtualfile_from_data(
1757
1751
instead.
1758
1752
"""
1759
1753
msg = (
1760
- "API function 'Session.virtualfile_from_datae ()' has been deprecated since "
1754
+ "API function 'Session.virtualfile_from_data ()' has been deprecated since "
1761
1755
"v0.13.0 and will be removed in v0.15.0. Use 'Session.virtualfile_in()' "
1762
1756
"instead."
1763
1757
)
1764
1758
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
1765
1766
return self .virtualfile_in (
1766
1767
check_kind = check_kind ,
1767
1768
data = data ,
1768
1769
x = x ,
1769
1770
y = y ,
1770
1771
z = z ,
1771
- extra_arrays = extra_arrays ,
1772
1772
required_z = required_z ,
1773
1773
required_data = required_data ,
1774
1774
)
0 commit comments