diff --git a/src/sage/algebras/fusion_rings/f_matrix.py b/src/sage/algebras/fusion_rings/f_matrix.py index 7bc57ebbaee..2e40be57df6 100644 --- a/src/sage/algebras/fusion_rings/f_matrix.py +++ b/src/sage/algebras/fusion_rings/f_matrix.py @@ -1268,7 +1268,7 @@ class methods. self._reset_solver_state() # Set up shared memory resource handlers n_proc = cpu_count() if processes is None else processes - self._pid_list = shared_memory.ShareableList([0] * (n_proc + 1)) + self._pid_list = shared_memory.ShareableList([0] * (n_proc+1)) pids_name = self._pid_list.shm.name self._solved = shared_memory.ShareableList(self._solved) s_name = self._solved.shm.name diff --git a/src/sage/algebras/steenrod/steenrod_algebra.py b/src/sage/algebras/steenrod/steenrod_algebra.py index b4392261535..8afcb5c6b66 100644 --- a/src/sage/algebras/steenrod/steenrod_algebra.py +++ b/src/sage/algebras/steenrod/steenrod_algebra.py @@ -606,7 +606,7 @@ def __init__(self, p=2, basis='milnor', **kwds): base_ring = GF(p) self._profile = profile self._truncation_type = truncation_type - if ((not self._generic and (profile and profile[0] < Infinity)) + if ((not self._generic and profile and profile[0] < Infinity) or (self._generic and profile != ((), ()) and profile[0] and profile[0][0] < Infinity) or (truncation_type < Infinity)):