CosmiQ / solaris

CosmiQ Works Geospatial Machine Learning Analysis Toolkit
https://solaris.readthedocs.io
Apache License 2.0
411 stars 112 forks source link

Add support for pathlib.Path objects as input #469

Open remtav opened 1 year ago

remtav commented 1 year ago

Description

Add support for pathlib.Path objects

Fixes #459

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Please describe tests that you added to the pytest codebase (if applicable).

3 very simple tests have been added to test the core input reading function for vector and raster files. These tests make sure a pathlib.Path object pointing to a file are succesfully read by the different utilities.

Checklist:

If your PR does not fulfill all of the requirements in the checklist above, that's OK! Just prepend [WIP] to the PR title until they are all satisfied. If you need help, @-mention a maintainer and/or add the Status: Help Needed label.

Copied from #460

remtav commented 1 year ago

@rbavery

CI checks seems to be launched, but unfortunately there is a permission error during tests: image

Thanks for your informative e-mail on the current state and envisionned future of solaris by the way.