Fixed ComposeChannels and bugs with num_channels()

num_channels() is now a bit hacky, but necessary.  Also, the case where it is called without having an image generated first is very narrow and usually happens at most once, at initialization (when it's necessary to know, beforehand, the number of channels of the inputs, in order to construct the higher structures)

Yep!




On Sat, Jul 19, 2014 at 4:45 PM, James A. Bednar <notifications@github.com>
wrote:

> In imagen/patterngenerator.py:
>
> >          return len(self._channel_data)
> >
> >
> > +
> >  # ALERT: Interface needs to change to support multiple generators, not
> >  # just rescaling a single one.
>
> ALERT can be removed now, right?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ioam/imagen/pull/32/files#r15144287>.
>