Skip to content

Commit

Permalink
fix: XarrayTimeSeriesCalcManager PathLike attributes -> Path
Browse files Browse the repository at this point in the history
  • Loading branch information
spool committed Oct 4, 2024
1 parent 9744466 commit df50b31
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/clim_recal/utils/xarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -1523,7 +1523,7 @@ class XarrayTimeSeriesCalcManager(Sequence):
...Path('.../median-tasmax-06.nc')]
"""

path: Path = climate_data_mount_path() / "Raw/UKCP2.2/"
path: PathLike = climate_data_mount_path() / "Raw/UKCP2.2/"
save_folder: PathLike = Path("../docs/assets/cpm-raw-medians")
sub_path: PathLike = Path("latest")
variables: Sequence[str | VariableOptions] = VariableOptions.cpm_values()
Expand All @@ -1534,6 +1534,9 @@ class XarrayTimeSeriesCalcManager(Sequence):
source_folders: list = field(default_factory=list)

def __post_init__(self) -> None:
self.path = Path(self.path)
self.save_folder = Path(self.save_folder)
self.sub_path = Path(self.sub_path)
if not self.source_folders:
self._set_source_folders()

Expand Down

0 comments on commit df50b31

Please sign in to comment.