aliby.tile.tiler.TrapLocations¶
- class TrapLocations(initial_location, tile_size=None, max_size=1200, drifts=None)[source]¶
Bases:
objectStores each trap as an instance of Trap. Traps can be iterated.
- Attributes
shapeReturns no of traps and no of drifts
Methods
from_tiler_init(initial_location[, ...])Instantiate class from an instance of the Tiler class
read_hdf5(file)Instantiate class from a hdf5 file
to_dict(tp)Export inital locations, tile_size, max_size, and drifts as a dictionary
at_time
Methods
__init__(initial_location[, tile_size, ...])at_time(tp)- rtype
ndarray
from_tiler_init(initial_location[, ...])Instantiate class from an instance of the Tiler class
read_hdf5(file)Instantiate class from a hdf5 file
to_dict(tp)Export inital locations, tile_size, max_size, and drifts as a dictionary
Attributes
Returns no of traps and no of drifts
- classmethod from_tiler_init(initial_location, tile_size=None, max_size=1200)[source]¶
Instantiate class from an instance of the Tiler class
- property shape¶
Returns no of traps and no of drifts