From f906be25a5de35cfcefbda61c14db08c636cc955 Mon Sep 17 00:00:00 2001 From: Marcus Mohr <marcus.mohr@lmu.de> Date: Wed, 4 Dec 2024 10:21:44 +0100 Subject: [PATCH] Fixes filenames in __init__.py and updates docstrings in base class --- .../function_space_implementations/__init__.py | 10 +++++----- .../function_space_impl_base.py | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/hog/operator_generation/function_space_implementations/__init__.py b/hog/operator_generation/function_space_implementations/__init__.py index 83f757d..b133d9c 100644 --- a/hog/operator_generation/function_space_implementations/__init__.py +++ b/hog/operator_generation/function_space_implementations/__init__.py @@ -16,9 +16,9 @@ __all__ = [ "function_space_impl_base", - "function_space_impl_factor", - "p0_function_space_impl", - "p1_function_space_impl", - "p2_function_space_impl", - "n1e1_function_space_impl", + "function_space_impl_factory", + "p0_space_impl", + "p1_space_impl", + "p2_space_impl", + "n1e1_space_impl", ] diff --git a/hog/operator_generation/function_space_implementations/function_space_impl_base.py b/hog/operator_generation/function_space_implementations/function_space_impl_base.py index a618d13..d410fbc 100644 --- a/hog/operator_generation/function_space_implementations/function_space_impl_base.py +++ b/hog/operator_generation/function_space_implementations/function_space_impl_base.py @@ -55,8 +55,8 @@ class FunctionSpaceImpl(ABC): implementation agnostic way. It is impossible to create an instance of this abstract base class directly. - Preferrably, use the static method `create_impl` which selects the correct - derived class for the `FunctionSpace`. + Preferrably, use `function_space_impl_factory.create_impl` which selects + the correct derived class for the `FunctionSpace`. """ def __init__( @@ -70,8 +70,8 @@ class FunctionSpaceImpl(ABC): It is impossible to create an instance of this abstract base class directly. This __init__ method is to be called by the derived classes. - Preferrably, use the static method `create_impl` which selects the - correct derived class for the `FunctionSpace`. + Preferrably, use `function_space_impl_factory.create_impl` which + selects the correct derived class for the `FunctionSpace`. """ self.fe_space = fe_space self.name = name -- GitLab