Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/python-for-matlab-development
/ BatteryEmptyError
Class
BatteryEmptyError
code/OO/ecar_sim.py:31–32 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
29
# }}}
30
import
numpy
as
np
31
class
BatteryEmptyError(Exception):
32
pass
33
charge = 80.0
# kWhr
34
d_rate = 0.002
35
while
True:
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected