Skip to content

Commit

Permalink
Add base_path parameter to schema repair functions and bump version t…
Browse files Browse the repository at this point in the history
…o 0.9.3.8
  • Loading branch information
legout committed Dec 9, 2024
1 parent 8de271d commit fd42684
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pydala/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def _repair_file_schemas(
files=files_to_repair,
file_schemas=file_schemas_to_repair,
schema=schema,
# base_path=self._path,
base_path=self._path,
filesystem=self._filesystem,
version=format_version,
ts_unit=ts_unit,
Expand Down
2 changes: 1 addition & 1 deletion pydala/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,9 +488,9 @@ def repair_schema(
backend=backend,
verbose=verbose,
)

if base_path is not None:
files = [os.path.join(base_path, f) for f in files]
file_schemas = {os.path.join(base_path, f): s for f, s in file_schemas.items()}

if schema is None:
schema, schemas_equal = pa.unify_schemas(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ name = "pydala2"
readme = "README.md"
#repository = "https://github.com/legout/pydala2"
requires-python = ">= 3.10"
version = "0.9.3.7"
version = "0.9.3.8"

[project.optional-dependencies]
legacy = ["polars-lts-cpu>=0.20.4"]
Expand Down

0 comments on commit fd42684

Please sign in to comment.