Hello,
I have an external code in PythonCaller that generates a segment_id for each feature. and I would like to understand what it is doing exactly and what does the if (feat_i*self.sampinv) % self.count==0.0 expression mean.
It looks like
def close(self):
group=0
for feat_i in range(len(self.feat_list)):
if (feat_i*self.sampinv) % self.count==0.0:
group+=1
self.feat_list[feat_i].setAttribute('segment_id',group)
self.pyoutput(self.feat_list[feat_i])