Beispiel #1
0
 def __init__(self, portal, ps, in_fc, params, out_fc, **kwargs):
     self.portal = portal
     self.ps = ps
     self.in_fc = in_fc
     self.params = []
     for i in range(len(params)):
         if len(self.in_fc) == 0:
             fc = 0
         elif len(self.in_fc) == 1:
             fc = self.in_fc[0]
         else:
             fc = self.in_fc[i]
         self.params.append(types.pg_value(params[i], fc, **kwargs))
     self.out_fc = out_fc
Beispiel #2
0
 def __init__(self, portal, ps, in_fc, params, out_fc, **kwargs):
     self.portal = portal
     self.ps = ps
     self.in_fc = in_fc
     self.params = []
     for i in range(len(params)):
         if len(self.in_fc) == 0:
             fc = 0
         elif len(self.in_fc) == 1:
             fc = self.in_fc[0]
         else:
             fc = self.in_fc[i]
         self.params.append(types.pg_value(params[i], fc, **kwargs))
     self.out_fc = out_fc