tlc.core.objects.tables.from_table.subset_table#

A Table whose rows are a subset of another Table.

Module Contents#

Classes#

Class

Description

SubsetTable

A procedural table where rows in an input table are optionally included given

API#

class tlc.core.objects.tables.from_table.subset_table.SubsetTable(url: tlc.core.url.Url | None = None, created: str | None = None, init_parameters: Any = None, row_cache_url: tlc.core.url.Url | None = None, row_cache_populated: bool | None = None, input_table_url: tlc.core.url.Url | tlc.core.objects.table.Table | None = None, range_factor_min: float | None = None, range_factor_max: float | None = None, include_probability: float | None = None)#

Bases: tlc.core.objects.table.Table

A procedural table where rows in an input table are optionally included given

  • An include range factor min/max (where 0 mean start of table, and 1 means end)

  • An ‘include_probability’ which determines the ratio of rows in the range to include. The actual probabilities are generated by a pseudo-random generator which guarantees identical outputs for identical configurations

property seed: int#

A deterministic seed for random number generation determined from object properties

To be used when including rows based on probability.

Returns: int: A random number seed