Skip to content

Commit fa7a937

Browse files
committed
Minor changes
1 parent e709712 commit fa7a937

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,11 @@
44
<h3>Neural spatiotemporal forecasting with PyTorch</h3>
55
<hr>
66
<p>
7-
<a href='https://pypi.org/project/torch-spatiotemporal/'>
8-
<img alt="PyPI" src="https://img.shields.io/pypi/v/torch-spatiotemporal">
9-
</a>
7+
<a href='https://pypi.org/project/torch-spatiotemporal/'><img alt="PyPI" src="https://img.shields.io/pypi/v/torch-spatiotemporal"></a>
108
<img alt="PyPI - Python Version" src="https://img.shields.io/badge/python-%3E%3D3.8-blue">
119
<!-- img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/torch-spatiotemporal" -->
1210
<img alt="Total downloads" src="https://static.pepy.tech/badge/torch-spatiotemporal">
13-
<a href='https://torch-spatiotemporal.readthedocs.io/en/latest/?badge=latest'>
14-
<img src='https://readthedocs.org/projects/torch-spatiotemporal/badge/?version=latest' alt='Documentation Status' />
15-
</a>
11+
<a href='https://torch-spatiotemporal.readthedocs.io/en/latest/?badge=latest'><img src='https://readthedocs.org/projects/torch-spatiotemporal/badge/?version=latest' alt='Documentation Status' /></a>
1612
</p>
1713
<p>
1814
🚀 <a href="https://torch-spatiotemporal.readthedocs.io/en/latest/usage/quickstart.html">Getting Started</a> - 📚 <a href="https://torch-spatiotemporal.readthedocs.io/en/latest/">Documentation</a> - 💻 <a href="https://torch-spatiotemporal.readthedocs.io/en/latest/notebooks/a_gentle_introduction_to_tsl.html">Introductory notebook</a>

tsl/engines/predictor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def load_model(self, filename: str):
127127
assert model_cls == self.model_cls
128128
if model_kwargs is not None:
129129
for k, v in model_kwargs.items():
130-
assert v == self.model_kwargs[k]
130+
assert v == self.model_kwargs[k], f'{v}'
131131
else:
132132
logger.warning("Predictor with already instantiated model is "
133133
f"loading a state_dict from {filename}. Cannot "
@@ -157,8 +157,8 @@ def _filter_forward_kwargs(self, kwargs: dict) -> dict:
157157
model_args = self._model_fwd_signature['signature']
158158
filtered = set(kwargs).difference(model_args)
159159
forwarded = set(kwargs).intersection(model_args)
160-
msg = f"Only args {list(forwarded)} are forwarded to the model " \
161-
f"({self.model.__class__.__name__}). "
160+
msg = (f"Only args {list(forwarded)} are forwarded to the model "
161+
f"({self.model.__class__.__name__}).")
162162
if len(filtered):
163163
msg = f"Arguments {list(filtered)} are filtered out. " + msg
164164
logger.warning(msg)

0 commit comments

Comments
 (0)