Skip to content

Update filename handling in InferableTypeStage for filespec#198

Merged
hobu merged 7 commits into
PDAL:mainfrom
mrtgenet:main
Jul 9, 2026
Merged

Update filename handling in InferableTypeStage for filespec#198
hobu merged 7 commits into
PDAL:mainfrom
mrtgenet:main

Conversation

@mrtgenet

Copy link
Copy Markdown
Contributor

Linked issue #197

When a reader stage is build using filespec, the type inference is tried on the whole dict and thus fails. Instead, the inference should be made on the "path" keyword

@hobu

hobu commented Jan 28, 2026

Copy link
Copy Markdown
Member

Please add a test for this

Comment thread src/pdal/pipeline.py Outdated
Raise ValueError if 'path' is missing in filename dict
@mrtgenet

Copy link
Copy Markdown
Contributor Author

Please add a test for this

Will try to do so. Should I add it to the test/test_pipeline.py file ?

@hobu

hobu commented Jan 28, 2026

Copy link
Copy Markdown
Member

Should I add it to the test/test_pipeline.py file ?

Yep. Just verify that the three possible combos of filespec usage are tested

Added assertions to validate reader and writer types for filespec format.
@mrtgenet

Copy link
Copy Markdown
Contributor Author

@hobu Test added (also removed unused import typing.List)

@mrtgenet

Copy link
Copy Markdown
Contributor Author

Not sure how the authentication is achieved though. The "headers" arg should be added to the options but with what key name exactly ?

@hobu

hobu commented Jul 9, 2026

Copy link
Copy Markdown
Member

I have updated this to provide full FileSpec support for PDAL 2.9+ and conditionalize its behavior for anything below that.

@hobu hobu linked an issue Jul 9, 2026 that may be closed by this pull request
@hobu hobu merged commit 27a1560 into PDAL:main Jul 9, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python pdal reader driver inference failure with filespec

2 participants