timeseriesAI / tsai

Time series Timeseries Deep Learning Machine Learning Python Pytorch fastai | State-of-the-art Deep Learning library for Time Series and Sequences in Pytorch / fastai
https://timeseriesai.github.io/tsai/
Apache License 2.0
5.07k stars 633 forks source link

Undefined variable #662

Closed rskumar closed 1 year ago

rskumar commented 1 year ago

https://github.com/timeseriesAI/tsai/blob/8b112284dcae73505f856963ee77ae7e39094452/tsai/data/core.py#L330

lts would be undefined if else executed at line 326 https://github.com/timeseriesAI/tsai/blob/8b112284dcae73505f856963ee77ae7e39094452/tsai/data/core.py#L326

Therefore it may throws error in such scenario.

oguiza commented 1 year ago

Hi @rskumar, Thanks for bringing this up. It was indeed an issue. I've already fixed it.