Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Represents an activity (ride, run, etc.).

src/s/t/stravalib-HEAD/stravalib/tests/test_model.py   stravalib(Download)
    def test_speed_units(self):
        a = model.Activity()
 
        a.max_speed = 1000 # m/s
        a.average_speed = 1000 # m/s
 
        # Activity
        a = model.Activity()
        a.distance = 1000 # m
        a.total_elevation_gain = 1000 # m

src/s/t/stravalib-0.2.2/stravalib/tests/test_model.py   stravalib(Download)
    def test_speed_units(self):
        a = model.Activity()
 
        a.max_speed = 1000 # m/s
        a.average_speed = 1000 # m/s
 
        # Activity
        a = model.Activity()
        a.distance = 1000 # m
        a.total_elevation_gain = 1000 # m