Bugfix: brainstorm.tools.extract crashed when a mask was provided by the data iterator.
I also reimplemented extract_and_save in terms of extract (fixes the very same bug). But this glosses over some of the original settings in extract_and_save (e.g. chunked storage), which I believe are unimportant. Still, you may want to have a look.
I also added a test (test_tools.py) for the bug and its fix.
Bugfix: brainstorm.tools.extract crashed when a mask was provided by the data iterator.
I also reimplemented extract_and_save in terms of extract (fixes the very same bug). But this glosses over some of the original settings in extract_and_save (e.g. chunked storage), which I believe are unimportant. Still, you may want to have a look.
I also added a test (test_tools.py) for the bug and its fix.