Skip to content

Commit

Permalink
Warn when trying to import datablock
Browse files Browse the repository at this point in the history
  • Loading branch information
ndevenish committed Aug 17, 2023
1 parent 8500ebb commit 325711d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/dxtbx/datablock.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
from __future__ import annotations

import logging
import warnings

from dxtbx.format.Registry import get_format_class_for_file

logger = logging.getLogger(__name__)

warnings.warn(
"dxtbx.datablock is deprecated; please import from dxtbx.experiment_list instead",
UserWarning,
stacklevel=2,
)


class FormatChecker:
"""A helper class to speed up identifying the correct image format by first
Expand Down

0 comments on commit 325711d

Please sign in to comment.