holoviz-topics / imagen

ImaGen: Generic Python library for 0D, 1D and 2D pattern distributions
https://imagen.holoviz.org/
BSD 3-Clause "New" or "Revised" License
31 stars 16 forks source link

Fixed ComposeChannels and bugs with num_channels() #32

Closed spiglerg closed 10 years ago

spiglerg commented 10 years ago

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)