Skip to content
Merged
Changes from all 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
8 changes: 5 additions & 3 deletions dials_data/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import hashlib
import os
import tarfile
import warnings
import zipfile
from pathlib import Path
from typing import Any
Expand Down Expand Up @@ -309,9 +310,10 @@ def __call__(self, test_data: str, **kwargs):
if the dataset is not available.
"""
if "pathlib" in kwargs:
raise ValueError(
"The pathlib parameter has been removed. The "
"DataFetcher always returns pathlib.Path() objects now."
warnings.warn(
"pathlib argument is deprecated: Using Pathlib is now the default (and only) option.",
UserWarning,
stacklevel=2,
)
if test_data not in self._cache:
self._cache[test_data] = self._attempt_fetch(test_data)
Expand Down