aliby.tile.tiler.TrapLocations

class TrapLocations(initial_location, tile_size=None, max_size=1200, drifts=None)[source]

Bases: object

Stores each trap as an instance of Trap. Traps can be iterated.

Attributes
shape

Returns 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

__init__(initial_location, tile_size=None, max_size=1200, drifts=None)[source]

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

shape

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

classmethod read_hdf5(file)[source]

Instantiate class from a hdf5 file

property shape

Returns no of traps and no of drifts

to_dict(tp)[source]

Export inital locations, tile_size, max_size, and drifts as a dictionary

Parameters
tp: integer

An index for a time point