@@ -492,8 +492,8 @@ def unflatten(self, ary):
492492 components .append (component )
493493
494494 if self ._operator_uses_obj_array :
495- from pytools . obj_array import make_obj_array
496- return make_obj_array (components )
495+ from pytools import obj_array
496+ return obj_array . new_1d (components )
497497 else :
498498 return components [0 ]
499499
@@ -651,8 +651,8 @@ def execute(code: Code, exec_mapper, pre_assign_check=None) -> np.ndarray:
651651 assert target in assignees
652652 context [target ] = value
653653
654- from pytools . obj_array import obj_array_vectorize
655- return obj_array_vectorize (exec_mapper , code .result )
654+ from pytools import obj_array
655+ return obj_array . vectorize (exec_mapper , code .result )
656656
657657# }}}
658658
@@ -967,8 +967,8 @@ def build_matrix(actx, places, exprs, input_exprs, domains=None,
967967 exprs = _prepare_expr (places , exprs , auto_where = auto_where )
968968
969969 if not (isinstance (exprs , np .ndarray ) and exprs .dtype .char == "O" ):
970- from pytools . obj_array import make_obj_array
971- exprs = make_obj_array ([exprs ])
970+ from pytools import obj_array
971+ exprs = obj_array . new_1d ([exprs ])
972972
973973 try :
974974 input_exprs = list (input_exprs )
0 commit comments