File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
doc/api/next_api_changes/deprecations Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change
1
+ Calling ``paths.get_path_collection_extents `` with empty *offsets *
2
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3
+
4
+ Calling `~.get_path_collection_extents ` with an empty *offsets * parameter
5
+ has an ambiguous interpretation and is therefore deprecated. When the
6
+ deprecation period expires, this will produce an error.
Original file line number Diff line number Diff line change @@ -1068,6 +1068,11 @@ def get_path_collection_extents(
1068
1068
from .transforms import Bbox
1069
1069
if len (paths ) == 0 :
1070
1070
raise ValueError ("No paths provided" )
1071
+ if len (offsets ) == 0 :
1072
+ _api .warn_deprecated (
1073
+ "3.8" , message = "Calling get_path_collection_extents() with an"
1074
+ " empty offsets list is deprecated since %(since)s. Support will"
1075
+ " be removed %(removal)s." )
1071
1076
extents , minpos = _path .get_path_collection_extents (
1072
1077
master_transform , paths , np .atleast_3d (transforms ),
1073
1078
offsets , offset_transform )
You can’t perform that action at this time.
0 commit comments