As mentioned in the issue, the import time of visiomode (and its startup time) can be cut in 4 if the pywnb import is delayed until the to_nwb() function is called for the first time.
Although it's not too elegant to have imports declared after the top of the file, the function is visible from the top and comments explain the reasoning behind the structure.
Closes #205.
As mentioned in the issue, the import time of
visiomode
(and its startup time) can be cut in 4 if thepywnb
import is delayed until theto_nwb()
function is called for the first time. Although it's not too elegant to have imports declared after the top of the file, the function is visible from the top and comments explain the reasoning behind the structure.