Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/readii/process/config/dataset_config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from pathlib import Path
from pathlib import Path, PosixPath
from typing import Dict, Union

from readii.io.loaders.general import loadImageDatasetConfig
Expand All @@ -7,10 +7,10 @@

def get_full_data_name(config: Union[Dict | Path]) -> str:
"""Combine DATA_SOURCE and DATASET_NAME config variables into a single string."""
match type(config):
case Path():
match config:
case PosixPath():
dataset_config = loadImageDatasetConfig(config.stem, config.parent)
case Dict():
case dict():
dataset_config = config
case _:
message = "Error getting full data name: config must be of type Path or Dict."
Expand Down
Loading