In [ ]:
import sys
sys.path.append('../')
import bicyclator as bc
In [2]:
bike = bc.Bicycle()
bike
Out[2]:
In [3]:
wheel = bc.Wheel(
name='wheely',
diameter=673,
)
lyonsport = bc.Bicycle(
name='Lyonsport',
front_cogs=[42, 28],
rear_cogs=[12, 14, 16, 18, 21, 26, 32],
crank_length=171,
front_wheel=wheel,
rear_wheel=wheel,
)
bc.gain_ratios(lyonsport)
#lyonsport.cadence_to_speeds(60)
Out[3]:
In [16]:
rivendell = lyonsport.copy()
#rivendell.front_cogs = [24, 35, 43]
rivendell.front_cogs = [26, 40]
rivendell.crank_length = 165
bc.gain_ratios(rivendell)
Out[16]:
In [ ]:
In [ ]: