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 @@ -1065,6 +1065,11 @@ def get_path_collection_extents(
1065
1065
from .transforms import Bbox
1066
1066
if len (paths ) == 0 :
1067
1067
raise ValueError ("No paths provided" )
1068
+ if len (offsets ) == 0 :
1069
+ _api .warn_deprecated (
1070
+ "3.6" , message = "Calling get_path_collection_extents() with an"
1071
+ " empty offsets list is deprecated since %(since)s. Support will"
1072
+ " be removed %(removal)s." )
1068
1073
extents , minpos = _path .get_path_collection_extents (
1069
1074
master_transform , paths , np .atleast_3d (transforms ),
1070
1075
offsets , offset_transform )
You can’t perform that action at this time.
0 commit comments