Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2bad203
commit 0337b05
Showing
9 changed files
with
1,440 additions
and
1,329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from carculator_utils import get_standard_driving_cycle_and_gradient | ||
import numpy as np | ||
|
||
|
||
def get_driving_cycle(size: list) -> np.ndarray: | ||
return get_standard_driving_cycle_and_gradient( | ||
vehicle_type="bus", | ||
vehicle_sizes=size, | ||
name="bus", | ||
)[0] | ||
|
||
|
||
def get_road_gradient(size: list) -> np.ndarray: | ||
return get_standard_driving_cycle_and_gradient( | ||
vehicle_type="bus", | ||
vehicle_sizes=size, | ||
name="bus", | ||
)[1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.