コード例 #1
0
ファイル: provenance.py プロジェクト: andrejsim/wps_workflow
def getDestination_prov(self, data):
    print ("GGGGGGGGG "+str(data[self.input_name]))
    if 'TriggeredByProcessIterationID' in data[self.input_name]:
        output = tuple([data[self.input_name]['_d4p'][x]
                        for x in self.groupby])
    else:
        output = tuple([data[self.input_name][x] for x in self.groupby])
    dest_index = abs(make_hash(output)) % len(self.destinations)
    return [self.destinations[dest_index]]
コード例 #2
0
 def getDestination(self, data):
     output = tuple([data[self.input_name][x] for x in self.groupby])
     dest_index = abs(make_hash(output)) % len(self.destinations)
     return [self.destinations[dest_index]]
コード例 #3
0
ファイル: processor.py プロジェクト: KNMI/wps_workflow
 def getDestination(self, data):
     output = tuple([data[self.input_name][x] for x in self.groupby])
     dest_index = abs(make_hash(output)) % len(self.destinations)
     return [self.destinations[dest_index]]
コード例 #4
0
ファイル: worker_mpi.py プロジェクト: krischer/dispel4py
 def getDestination(self,data):
     output = tuple([data[self.input_name][x] for x in self.groupby])
     next=abs(make_hash(output))%len(self.processes_list)
     self.process.rank_dest=[self.processes_list[next]]