tobac
tobac copied to clipboard
Resetting parameters in linking_trackpy
I have been working a lot lately with linking_trackpy() for my notebook about linking, and I have a suggestion:
I think the values for MAX_SUB_NET_SIZE and MAX_SUB_NET_SIZE_ADAPTIVE, which are controlled by the subnet_size keyword, should be reset after each function call.
The values of these parameters are stored globally. Therefore, this can lead to undesired behavior if linking_trackpy is called multiple times.
Yes, completely agreed with this! I'd go as far to say that we should call this a bugfix, but I'm not sure how urgent it is... For now I've milestoned it for 1.4. Given that you fixed the original implementation of this, I'd be happy for you to submit a bugfix, or I can do that!
I will do the bugfix!
Can I do this along with adding the exceptions for #164?
I am happy for you to do both bugfixes in the same PR, yes!
This has been resolved with #168