Skip to content

Commit

Permalink
Remove unnecessary logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
lohedges committed Oct 22, 2024
1 parent 756c08c commit 56da067
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions emle/models/_emle.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@

__all__ = ["EMLE"]

from loguru import logger as _logger

import numpy as _np
import os as _os
import scipy.io as _scipy_io
Expand Down Expand Up @@ -217,17 +215,13 @@ def __init__(

if model is not None:
if not isinstance(model, str):
msg = "'model' must be of type 'str'"
_logger.error(msg)
raise TypeError(msg)
raise TypeError("'model' must be of type 'str'")

# Convert to an absolute path.
abs_model = _os.path.abspath(model)

if not _os.path.isfile(abs_model):
msg = f"Unable to locate EMLE embedding model file: '{model}'"
_logger.error(msg)
raise IOError(msg)
raise IOError(f"Unable to locate EMLE embedding model file: '{model}'")
self._model = abs_model

# Validate the species for the custom model.
Expand Down

0 comments on commit 56da067

Please sign in to comment.