Skip to content

Commit 4be8888

Browse files
Merge pull request #15 from Geode-solutions/fix/dependencies
Fix/dependencies
2 parents 48e800f + df57ea2 commit 4be8888

File tree

6 files changed

+64
-19
lines changed

6 files changed

+64
-19
lines changed

COPYLEFT

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
VTK: BSD-3-Clause
44
Copyright (c) 2008-Present Ken Martin, Will Schroeder, Bill Lorensen.
5+
CC Attribution 2014-present Borgen

generate_schemas.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ const fs = require("fs");
22
const path = require("path");
33
const glob = require("glob");
44
const process = require("process");
5-
const { log } = require("console");
65

76
const findDirectoryPath = (targetDirectoryName) => {
87
const pathToCheck = path.join(process.cwd(), targetDirectoryName);

requirements.in

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
wslink
2-
numpy
1+
jsonschema
2+
numpy
3+
vtk
4+
wslink

requirements.txt

Lines changed: 54 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,74 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.10
2+
# This file is autogenerated by pip-compile with Python 3.9
33
# by the following command:
44
#
55
# pip-compile requirements.in
66
#
7-
aiohttp==3.8.5
7+
aiohttp==3.9.3
88
# via wslink
99
aiosignal==1.3.1
1010
# via aiohttp
1111
async-timeout==4.0.3
1212
# via aiohttp
13-
attrs==23.1.0
14-
# via aiohttp
15-
charset-normalizer==3.2.0
16-
# via aiohttp
17-
frozenlist==1.4.0
13+
attrs==23.2.0
14+
# via
15+
# aiohttp
16+
# jsonschema
17+
# referencing
18+
contourpy==1.2.0
19+
# via matplotlib
20+
cycler==0.12.1
21+
# via matplotlib
22+
fonttools==4.49.0
23+
# via matplotlib
24+
frozenlist==1.4.1
1825
# via
1926
# aiohttp
2027
# aiosignal
21-
idna==3.4
28+
idna==3.6
2229
# via yarl
23-
multidict==6.0.4
30+
importlib-resources==6.1.2
31+
# via matplotlib
32+
jsonschema==4.21.1
33+
# via -r requirements.in
34+
jsonschema-specifications==2023.12.1
35+
# via jsonschema
36+
kiwisolver==1.4.5
37+
# via matplotlib
38+
matplotlib==3.8.3
39+
# via vtk
40+
multidict==6.0.5
2441
# via
2542
# aiohttp
2643
# yarl
27-
numpy==1.25.2
44+
numpy==1.26.4
45+
# via
46+
# -r requirements.in
47+
# contourpy
48+
# matplotlib
49+
packaging==23.2
50+
# via matplotlib
51+
pillow==10.2.0
52+
# via matplotlib
53+
pyparsing==3.1.2
54+
# via matplotlib
55+
python-dateutil==2.9.0.post0
56+
# via matplotlib
57+
referencing==0.33.0
58+
# via
59+
# jsonschema
60+
# jsonschema-specifications
61+
rpds-py==0.18.0
62+
# via
63+
# jsonschema
64+
# referencing
65+
six==1.16.0
66+
# via python-dateutil
67+
vtk==9.3.0
2868
# via -r requirements.in
29-
wslink==1.11.1
69+
wslink==1.12.4
3070
# via -r requirements.in
31-
yarl==1.9.2
71+
yarl==1.9.4
3272
# via aiohttp
73+
zipp==3.17.0
74+
# via importlib-resources

src/opengeodeweb_viewer/vtk_protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def get_point_position(self, params):
214214
return {"x": ppos[0], "y": ppos[1], "z": ppos[2]}
215215

216216
@exportRpc(reset_json["rpc"])
217-
def reset(self):
217+
def reset(self, params):
218218
validate_schemas(params, reset_json)
219219
renderWindow = self.getView("-1")
220220
renderWindow.GetRenderers().GetFirstRenderer().RemoveAllViewProps()

src/opengeodeweb_viewer/vtkw_server.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@ def initialize(self):
7878

7979

8080
if __name__ == "__main__":
81-
if os.path.isfile("./.env"):
82-
basedir = os.path.abspath(os.path.dirname(__file__))
83-
dotenv.load_dotenv(os.path.join(basedir, ".env"))
81+
basedir = os.path.abspath(os.path.dirname(__file__))
82+
dot_env_path = os.path.join(basedir, "../../.env")
83+
if os.path.isfile(dot_env_path):
84+
dotenv.load_dotenv(dot_env_path)
8485
PYTHON_ENV = os.environ.get("PYTHON_ENV", default="prod").strip().lower()
8586
if PYTHON_ENV == "prod":
8687
config.prod_config()

0 commit comments

Comments
 (0)