Skip to content

Commit

Permalink
⚡ Minor change to TimeSeries to allow child classes to properly use r…
Browse files Browse the repository at this point in the history
…esampling method
  • Loading branch information
Luca Spartera committed Apr 29, 2022
1 parent 472c2d3 commit bfa2848
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion outatime/timeseries/time_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def resample(self,
self[:] = resampled
self.data_granularity = granularity
else:
return TimeSeries(resampled, data_granularity=granularity)
return self.__class__(resampled, data_granularity=granularity)

def update(self, __list: List[TimeSeriesData]):
"""
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
long_description = long_description.split("</p>")[1]
long_description = "![](https://github.com/SynStratos/outatime/blob/main/docs/outatime_banner.png)" + long_description

setuptools.setup(
name='outatime',
packages=setuptools.find_packages(),
version='1.0.1',
version='1.0.2',
description='Python framework to manage time series.',
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit bfa2848

Please sign in to comment.