mirror of
https://github.com/macaodha/batdetect2.git
synced 2025-06-29 14:41:58 +02:00
12 lines
334 B
Python
12 lines
334 B
Python
from pathlib import Path
|
|
|
|
from batdetect2.configs import load_config
|
|
from batdetect2.data import DatasetsConfig, load_datasets
|
|
|
|
|
|
def test_can_load_dataset_configs():
|
|
root = Path(__file__).parent.parent
|
|
path = root / "conf.yaml"
|
|
config = load_config(path, schema=DatasetsConfig, field="datasets")
|
|
load_datasets(config)
|