MCPcopy Create free account
hub / github.com/WebODM/WebODM / get_entry

Method get_entry

app/video.py:42–54  ·  view source on GitHub ↗
(self, timestamp)

Source from the content-addressed store, hash-verified

40 self.utm_to_ll = None
41
42 def get_entry(self, timestamp):
43 if not self.data:
44 self.parse()
45
46 # check min and max
47 if timestamp < self.data[0]["start"] or timestamp > self.data[len(self.data) - 1]["end"]:
48 return None
49
50 for entry in self.data:
51 if entry["start"] <= timestamp and entry["end"] >= timestamp:
52 return entry
53
54 return None
55
56 def get_gps(self, timestamp):
57 if not self.data:

Callers

nothing calls this directly

Calls 1

parseMethod · 0.95

Tested by

no test coverage detected