MCPcopy Create free account
hub / github.com/Atrovast/THGS / _process

Method _process

ext/spt/transforms/sampling.py:398–407  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

396 self.x = x
397
398 def _process(self, data):
399 # Nothing to do if less than 1 step required
400 if self.steps <= 0:
401 return data
402
403 # Recursively split the data
404 for p in self.binary_tree_path:
405 data = self.split_by_main_xy_direction(data, left=not p, right=p)
406
407 return data
408
409 @property
410 def binary_tree_path(self):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected