Failing to generate mask and saving multiple channels data to a single image

Hey @eioe thanks for your reply!

So, about 1, I’m trying to combine the 3 “image data” into 1 by “extending” the vertical axes.
Example:
Assuming we have data shaped as (n_channels, n_frequencies, n_timestamps) what I want to produce is (n_channels * n_frequencies, n_timestamps).

The use case here is to train a neural net with an image representing an event type or run. The data can be averaged out in the case of event types, but it doesn’t matter much other than the number of images we’d have is lower if we average things out. By the way, these images need to be saved to a file, so it has nothing to do with plotting/showing the plot to the end user.

More on this other thread.

About 2, I’ll test that tonight.