From 50d570f8d67ee6c5d9160b90b3f0ed56fbcc3bc4 Mon Sep 17 00:00:00 2001 From: Matt Wala Date: Wed, 3 Jun 2020 02:14:13 -0500 Subject: [PATCH] Rename array_expr to transform --- doc/reference.rst | 2 +- pytato/array.py | 2 +- pytato/{array_expr.py => transform.py} | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) rename pytato/{array_expr.py => transform.py} (97%) diff --git a/doc/reference.rst b/doc/reference.rst index a991d28..2a14d6a 100644 --- a/doc/reference.rst +++ b/doc/reference.rst @@ -3,5 +3,5 @@ Reference .. automodule:: pytato.array .. automodule:: pytato.program -.. automodule:: pytato.array_expr .. automodule:: pytato.scalar_expr +.. automodule:: pytato.transform diff --git a/pytato/array.py b/pytato/array.py index 096cfc2..54f6e32 100644 --- a/pytato/array.py +++ b/pytato/array.py @@ -179,7 +179,7 @@ class Namespace(Mapping[str, "Array"]): return len(self._symbol_table) def copy(self) -> Namespace: - from pytato.array_expr import CopyMapper, copy_namespace + from pytato.transform import CopyMapper, copy_namespace return copy_namespace(self, CopyMapper(Namespace())) def assign(self, name: str, value: Array) -> str: diff --git a/pytato/array_expr.py b/pytato/transform.py similarity index 97% rename from pytato/array_expr.py rename to pytato/transform.py index fdd8202..76a1b49 100644 --- a/pytato/array_expr.py +++ b/pytato/transform.py @@ -31,10 +31,10 @@ from pymbolic.mapper import Mapper as MapperBase from pytato.array import Array, IndexLambda, Namespace, Output, Placeholder __doc__ = """ -.. currentmodule:: pytato.array_expr +.. currentmodule:: pytato.transform -Tools for Array Expressions ---------------------------- +Transforming Computations +------------------------- .. autoclass:: CopyMapper .. autofunction:: copy_namespace -- GitLab