MCPcopy Create free account
hub / github.com/LaihoE/Python-demoparser / coordinates

Function coordinates

examples/player_coordinates/coordinates_parallel.py:8–15  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

6
7
8def coordinates(file):
9 wanted_props = ["X", "Y", "Z"]
10 # This will early exit parsing after just 10k ticks
11 wanted_ticks = [x for x in range(5000, 10000)]
12 parser = DemoParser(file)
13 # You can remove optional arguments to get all tick or all players
14 df = parser.parse_ticks(wanted_props, ticks=wanted_ticks)
15 return df
16
17
18if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

parse_ticksMethod · 0.95
DemoParserClass · 0.85

Tested by

no test coverage detected