We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12e019c commit 199b695Copy full SHA for 199b695
1 file changed
src/pdal/pipeline.py
@@ -218,7 +218,9 @@ class InferableTypeStage(Stage):
218
def __init__(self, filename: Optional[str] = None, **options: Any):
219
if filename:
220
if isinstance(filename, dict):
221
- options["filename"] = filename.get("path")
+ if "path" not in filename:
222
+ raise ValueError(f"'path' is missing in the provided filespec: {filename}")
223
+ options["filename"] = filename["path"]
224
else:
225
options["filename"] = filename
226
super().__init__(**options)
0 commit comments