added shorter syntax for one pane

This commit is contained in:
David Brazda
2024-10-13 14:21:05 +02:00
parent a9cb8da66e
commit 7b0acec3e6
5 changed files with 33 additions and 6 deletions

View File

@ -113,7 +113,7 @@ def is_vbt_indicator(variable):
# Get the module path of the variable's type
module_path = variable.__class__.__module__
# Check if it starts with 'vectorbtpro.indicators'
return module_path.startswith('vectorbtpro.indicators')
return module_path.startswith('vectorbtpro.indicators') or module_path.startswith('indicators.')
class Pane:
def __init__(self, window):