Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* validate that paths can be coerced to valid URIs * add a test that paths are converted to URIs * added test and better error if local path is not absolute * raise more informative error if path is not absolute * test that empty paths are allowed * add failing test for raising on malformed paths * fix paths in tests * fix more tests * remove the file:/// prefix when writing to kerchunk format * absolute paths in recently-added tests * absolute paths in recently-added tests * fix one more test * stop wrapping specific error in less useful one * moved remaining kerchunk parsing logic out into translator file * add fs_root parameter to validation fn * demote ChunkEntry to a TypedDict to separate validation fn * actually instead add new constructor method to TypedDict * test kerchunk writer with absolute paths * make kerchunk reader tests pass * try to implement the fs_root concatenation * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * implementation using cloudpathlib working * check that fs_root doesn't have a filetype suffix * add cloudpathlib to dependencies * allow http paths, and require file suffixes * unit tests for path validation * test whether we can catch malformed paths * test fs_root * add (unimplemented) validate_entries kwarg to .from_arrays * add .keys(), .values(), .items() * test validate_paths during .from_arrays * ensure validation actually normalizes paths to uris * test .rename_paths correctly validates paths * some release notes * remove now-superfluous coercion to URI in icechunk writer * added link to icechunk writer performance benchmark * add reader_kwargs argument to open_virtual_dataset, and pass it down to every reader * ensure relative paths containing .. can be normalized * ensure HDF5 reader always returns absolute URIs * ensure HDF reader always returns absolute URIs * add relative path handling to other kerchunk-based readers * add dmrpp relative path integration test * fix kerchunk relative paths test by pluggin through fs_root kwarg * fix dmrpp tests by using absolute filepaths in DMR++ contents * clarify new dmrpp test * test handling of relative filepaths to dmrpp files * group related tests * removed cloudpathlib from validation code * fix bug but restrict fs_root to only handle filesystem paths, not bucket url prefixes * global list of recognized URI prefixes * cleanup * remove cloudpathlib from dependencies * fix/ignore some typing errors * rewrite tests to use a new dmrparser_factory * rewrite using global dict of XML strings * fix final test by explicitly passing in tmp_path instead of using a fixture which requests tmp_path * fix bug with not converting Path objects to strings * dmrpp relative paths tests passing * fix type hint for filetype kwarg * user documentation on fs_root * change example manifests to use URIs * reminder that rename_paths exists * update release notes * remove note about .rename_paths --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: ayushnag <[email protected]>
- Loading branch information