MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __len__

Method __len__

physics/n_body_simulation.py:133–134  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

131 self.softening_factor = softening_factor
132
133 def __len__(self) -> int:
134 return len(self.bodies)
135
136 def update_system(self, delta_time: float) -> None:
137 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected