TDAmeritrade / stumpy

STUMPY is a powerful and scalable Python library for modern time series analysis

Home Page:https://stumpy.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add context manager support for config variables

seanlaw opened this issue · comments

One minor annoyance when changing variables like config.STUMPY_EXCL_ZONE is needing to remember to revert this variable back (where appropriate). Perhaps, this can be alleviated with the use of a context manager that can help keep track of this and to perform the reversion for you once you leave the context manager.

We should do this for some of our tutorials (assuming it works)