Skip to content

Commit

Permalink
Merge pull request #177 from specklesystems/2.17
Browse files Browse the repository at this point in the history
2.17
  • Loading branch information
KatKatKateryna authored Nov 13, 2023
2 parents da8097e + 73c1b0d commit b1539f2
Show file tree
Hide file tree
Showing 6 changed files with 522 additions and 359 deletions.
2 changes: 2 additions & 0 deletions plugin_utils/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ def install_requirements(host_application: str) -> None:
str(path),
"debugpy==1.8.0",
],
shell=True,
capture_output=True,
text=True,
)
Expand Down Expand Up @@ -213,6 +214,7 @@ def install_requirements(host_application: str) -> None:
"-r",
str(get_requirements_path()),
],
shell=True,
capture_output=True,
text=True,
)
Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.9, <4.0"
numpy = "^1.25.2"
specklepy = "2.17.0"
specklepy = "2.17.12"
pyshp = "2.3.1"
requests = "2.31.0"
requests-toolbelt = "0.10.1"
Expand Down
8 changes: 5 additions & 3 deletions speckle/converter/layers/feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,13 +248,14 @@ def addFeatVariant(key, variant, value, f: QgsFeature):
return feat
except Exception as e:
logToUser(e, level=2, func=inspect.stack()[0][3])
return
return feat


def updateFeat(feat: QgsFeature, fields: QgsFields, feature: Base) -> dict[str, Any]:
try:
# print("__updateFeat")
for i, key in enumerate(fields.names()):
all_field_names = fields.names()
for i, key in enumerate(all_field_names):
variant = fields.at(i).type()
try:
if key == "Speckle_ID":
Expand Down Expand Up @@ -282,6 +283,7 @@ def updateFeat(feat: QgsFeature, fields: QgsFields, feature: Base) -> dict[str,
{},
rootName + "_" + str(i),
feature[rootName][i],
1,
)
for i, (key, value) in enumerate(newVals.items()):
for k, (x, y) in enumerate(newF.items()):
Expand All @@ -295,7 +297,7 @@ def updateFeat(feat: QgsFeature, fields: QgsFields, feature: Base) -> dict[str,
else:
try:
newF, newVals = traverseDict(
{}, {}, rootName, feature[rootName]
{}, {}, rootName, feature[rootName], 1
)
for i, (key, value) in enumerate(newVals.items()):
for k, (x, y) in enumerate(newF.items()):
Expand Down
Loading

0 comments on commit b1539f2

Please sign in to comment.