Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rwood-97 committed Oct 27, 2023
1 parent 48dda3b commit bc4c0f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapreader/classify/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def __init__(
if load_path:
self.load(load_path=load_path, force_device=force_device)

elif isinstance((model, labels_map), None):
elif model is None or labels_map is None:
raise ValueError(
"[ERROR] Unless passing ``load_path``, ``model`` and ``labels_map`` must be defined."
)
Expand Down

0 comments on commit bc4c0f0

Please sign in to comment.