Changeset 1639

Show
Ignore:
Timestamp:
07/16/07 09:54:23 (1 year ago)
Author:
wrobe..@pld-linux.org
Message:

- use positional and keywords arguments for projection methods

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphas/branches/hw/gaphas/sexamples.py

    r1634 r1639  
    2121        Vector(5, 50, 5, -25) -> A=(5, 50), B=(10, 25) 
    2222    """ 
    23     def _cproj(self, c, data): 
     23    def _cproj(self, c, *args, **kw): 
     24        data = kw['data'] 
    2425        for v in c.variables(): 
    2526            v0 = data[v] 
     
    2728 
    2829 
    29     def _iproj(self, c, data): 
     30    def _iproj(self, c, *args, **kw): 
     31        data = kw['data'] 
    3032        for v in c.variables(): 
    3133            v0 = data[v]