[PEAK] trellis attrs

nicky van foreest vanforeest at gmail.com
Fri Sep 30 15:28:17 EDT 2011


> I'll go ahead and just answer this bit, because it's the part I can
> understand without more detailed study.  Hopefully it'll get you what you
> need.  ;-)
> Do this:
> class Batch(trellis.Component):
>      prevs = trellis.make(trellis.Set)
>      duration = trellis.attr(0)

Fantastic. This works neat.

I also tried the other idea of Lloyd, but that didn't work. Anyway, many thanks.

Nicky


More information about the PEAK mailing list