fixed caching bug and related issues

Because   self() from Selector already generates new data from
current_generator, and channels() repeats the exact same operation. It's a
waste of computing time.

In the future we could add support for use_cached in Selector too: however
it has to be designed carefully, as no generator might be selected and this
could lead to crashes.

G



On Sat, Aug 2, 2014 at 3:05 PM, Giacomo Spigler <spiglerg@gmail.com> wrote:

> Yep
>
>
> On Sat, Aug 2, 2014 at 3:00 PM, James A. Bednar <notifications@github.com>
> wrote:
>
>> In imagen/image.py:
>>
>> > @@ -327,8 +327,10 @@ def _process_channels(self,p,**params_to_override):
>> >          orig_image = self._image
>> >
>> >          for i in range(len(self._channel_data)):
>> > -            self._image = self._channel_data[i]
>> > +            self._image = self._original_channel_data[i]  #self._channel_data[i]
>>
>> Presumably this comment should be deleted? It's confusing.
>>
>> —
>> Reply to this email directly or view it on GitHub
>> <https://github.com/ioam/imagen/pull/36/files#r15729167>.
>>
>
>