Skip to content
Open
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
4 changes: 3 additions & 1 deletion materializationengine/blueprints/client/api2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1992,8 +1992,8 @@
continue
elif c.endswith("pt_root_id"):
continue
if c in geometry_columns:
continue

Check failure on line 1996 in materializationengine/blueprints/client/api2.py

View workflow job for this annotation

GitHub Actions / Test against different Python versions (3.10)

Ruff

materializationengine/blueprints/client/api2.py:1996:9: SyntaxError: Expected an indented block after `elif` clause

Check failure on line 1996 in materializationengine/blueprints/client/api2.py

View workflow job for this annotation

GitHub Actions / Test against different Python versions (3.10)

Ruff

materializationengine/blueprints/client/api2.py:1995:41: SyntaxError: Expected ':', found newline
elif c in unique_values.keys():
prop = viewer_state.AnnotationPropertySpec(
id=c,
Expand Down Expand Up @@ -2565,6 +2565,8 @@
geometry_columns[1] + "_y",
geometry_columns[1] + "_z",
]
else:
abort("400", "Unsupported annotation type {}".format(anntype))
for p in properties:
if p.enum_values is not None:
df[p.id].replace(
Expand All @@ -2578,7 +2580,7 @@
for r in relationships:
if r in df.columns:
kwargs[r] = df.loc[i, r]
if row["valid"]:
if row.get("valid", True):
if anntype == "point":
point = df.loc[i, point_cols].tolist()
writer.add_point(point, id=df.loc[i, "id"], **kwargs)
Expand Down
Loading