Skip to content

Commit

Permalink
Dev icenet-ai#211: Updated old syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
bnubald committed Feb 29, 2024
1 parent d62f154 commit 19fc598
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions icenet/data/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,9 @@ def __getitem__(self, idx):
def dates(self):
return self._dates
except ModuleNotFoundError:
logging.warn("PyTorch module not found - not mandatory if not using PyTorch")
logging.warning("PyTorch module not found - not mandatory if not using PyTorch")
except ImportError:
logging.warn("PyTorch import failed - not mandatory if not using PyTorch")
logging.warning("PyTorch import failed - not mandatory if not using PyTorch")


@setup_logging
Expand Down

0 comments on commit 19fc598

Please sign in to comment.