Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
# update sys.path to load all GEOS Python Package dependencies
geos_pv_path: Path = Path( __file__ ).parent.parent.parent.parent.parent
sys.path.insert( 0, str( geos_pv_path / "src" ) )
from geos.pv.utils.config import update_paths

update_paths()

from geos.processing.generic_processing_tools.CreateConstantAttributePerRegion import CreateConstantAttributePerRegion

Expand Down
10 changes: 9 additions & 1 deletion geos-pv/src/geos/pv/utils/details.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# SPDX-FileContributor: Martin Lemay, Romain Baville, Jacques Franc
# ruff: noqa: E402 # disable Module level import not at top of file
# mypy: disable-error-code="misc"
import sys
from pathlib import Path
# Add Enum for filter categories
from functools import update_wrapper
from typing import Protocol, Any, Type, TypeVar, Callable, runtime_checkable, Union
Expand All @@ -23,6 +25,13 @@
vtkInformationVector,
)

# update sys.path to load all GEOS Python Package dependencies
geos_pv_path: Path = Path( __file__ ).parent.parent.parent.parent.parent
sys.path.insert( 0, str( geos_pv_path / "src" ) )
from geos.pv.utils.config import update_paths

update_paths()

__doc__ = """
Set of decorators that allows quicker generation of DataSet derived to the same DataSet derived filters. If it a list of type is provided, then the unique output type is set to vtkDataObject.

Expand Down Expand Up @@ -51,7 +60,6 @@ class FilterCategory( str, Enum ):

U = TypeVar( 'U', bound='vtkDataObject' )


@runtime_checkable
class IsSISOFilter( Protocol[ U ] ):
"""Protocol to ensure that the wrapped filter defines the correct Filter core function."""
Expand Down
Loading