fix
This commit is contained in:
2
setup.py
2
setup.py
@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='ttools',
|
name='ttools',
|
||||||
version='0.1.3',
|
version='0.1.4',
|
||||||
packages=['ttools'],
|
packages=['ttools'],
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'vectorbtpro',
|
'vectorbtpro',
|
||||||
|
|||||||
@ -44,6 +44,8 @@ class AnchoredIndicator:
|
|||||||
# Run the indicator function for each group and concatenate the results
|
# Run the indicator function for each group and concatenate the results
|
||||||
results = []
|
results = []
|
||||||
for date, group in grouped_data:
|
for date, group in grouped_data:
|
||||||
|
if group.empty:
|
||||||
|
continue
|
||||||
# Run the indicator for each group's data
|
# Run the indicator for each group's data
|
||||||
result = self.indicator.run(group, *args, **kwargs)
|
result = self.indicator.run(group, *args, **kwargs)
|
||||||
results.append(result)
|
results.append(result)
|
||||||
|
|||||||
Reference in New Issue
Block a user