You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Returns a list of expansion positions, not sorted in any way."""
155
-
assertself._expansion_positions_list, "self._find_expansion_locations() has not been run yet, so accessing the list of expansion locations is pointless."
155
+
assertself._expansion_positions_list, (
156
+
"self._find_expansion_locations() has not been run yet, so accessing the list of expansion locations is pointless."
Caution: This function is slow. If you only need the expansion locations, use the property above.
165
167
"""
166
-
assertself._expansion_positions_list, "self._find_expansion_locations() has not been run yet, so accessing the list of expansion locations is pointless."
168
+
assertself._expansion_positions_list, (
169
+
"self._find_expansion_locations() has not been run yet, so accessing the list of expansion locations is pointless."
assertself._expansion_positions_list, "self._find_expansion_locations() has not been run yet, so accessing the list of expansion locations is pointless."
170
+
assertself._expansion_positions_list, (
171
+
"self._find_expansion_locations() has not been run yet, so accessing the list of expansion locations is pointless."
172
+
)
171
173
warnings.warn(
172
174
"You are using 'self.expansion_locations', please use 'self.expansion_locations_list' (fast) or 'self.expansion_locations_dict' (slow) instead.",
173
175
DeprecationWarning,
@@ -372,9 +374,9 @@ def do(
372
374
)
373
375
returnaction
374
376
375
-
assertisinstance(
376
-
action, UnitCommand
377
-
), f"Given unit command is not a command, but instead of type {type(action)}"
377
+
assertisinstance(action, UnitCommand), (
378
+
f"Given unit command is not a command, but instead of type {type(action)}"
), f"Condensed index is larger than amount of calculated distances: {condensed_index} < {len(self._cached_pdist)}, units that caused the assert error: {unit1} and {unit2}"
893
+
assertcondensed_index<len(self._cached_pdist), (
894
+
f"Condensed index is larger than amount of calculated distances: {condensed_index} < {len(self._cached_pdist)}, units that caused the assert error: {unit1} and {unit2}"
0 commit comments