Skip to content

Commit d38b993

Browse files
committed
test
1 parent 4d8f3ac commit d38b993

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

src/opengeodeweb_viewer/rpc/generic/generic_protocols.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33

44
# Third party imports
5-
from vtk.web import protocols as vtk_protocols # type: ignore
5+
from vtkmodules.web import protocols as vtk_protocols
66
from wslink import register as exportRpc # type: ignore
77
from opengeodeweb_microservice.schemas import get_schemas_dict
88

src/opengeodeweb_viewer/vtk_protocol.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from dataclasses import dataclass, field
55

66
# Third party imports
7-
from vtk.web import protocols as vtk_protocols # type: ignore
7+
from vtkmodules.web import protocols as vtk_protocols
88
from vtkmodules.vtkIOXML import (
99
vtkXMLReader,
1010
)
@@ -33,7 +33,7 @@ class vtkData:
3333
)
3434

3535

36-
class VtkView(vtk_protocols.vtkWebProtocol): # type: ignore
36+
class VtkView(vtk_protocols.vtkWebProtocol):
3737
def __init__(self) -> None:
3838
super().__init__()
3939
self.DATA_FOLDER_PATH = os.getenv("DATA_FOLDER_PATH", ".")
@@ -108,11 +108,6 @@ def get_data_file_path(self, data_id: str, filename: str | None = None) -> str:
108108
def get_renderer(self) -> vtkRenderer:
109109
return cast(vtkRenderer, self.getSharedObject("renderer"))
110110

111-
def get_protocol(self, name: str) -> vtk_protocols.vtkWebProtocol:
112-
for p in self.coreServer.getLinkProtocols():
113-
if type(p).__name__ == name:
114-
return p
115-
116111
def render(self, view: int = -1) -> None:
117112
grid_scale = self.get_grid_scale()
118113
if grid_scale is not None:

src/opengeodeweb_viewer/vtkw_server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import os
44

55
# Third party imports
6-
from vtk.web import wslink as vtk_wslink # type: ignore
7-
from vtk.web import protocols as vtk_protocols
6+
from vtkmodules.web import wslink as vtk_wslink
7+
from vtkmodules.web import protocols as vtk_protocols
88
from wslink import server # type: ignore
99
from vtkmodules.vtkRenderingCore import vtkRenderer, vtkRenderWindow
1010
from opengeodeweb_microservice.database import connection
@@ -38,7 +38,7 @@
3838
VtkModelBlocksView,
3939
)
4040
from .rpc.generic.generic_protocols import VtkGenericView
41-
from .rpc.utils_protocols import VtkUtilsView # type: ignore
41+
from .rpc.utils_protocols import VtkUtilsView
4242

4343

4444
# =============================================================================

0 commit comments

Comments
 (0)