Skip to content
Snippets Groups Projects
Commit a8824312 authored by Alán Muñoz's avatar Alán Muñoz
Browse files

feate(tiler): add at_time

parent c91757c3
No related branches found
No related tags found
No related merge requests found
......@@ -166,6 +166,10 @@ class TrapLocations:
res["drifts"] = np.expand_dims(self.drifts[tp], axis=0)
return res
def at_time(self, tp: int) -> np.ndarray:
# Returns ( ntraps, 2 ) ndarray with the trap centres as individual rows
return np.array([trap.at_time(tp) for trap in self.traps])
@classmethod
def from_tiler_init(
cls, initial_location, tile_size: int = None, max_size: int = 1200
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment