Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/ReSim
/ cast_tuple
Function
cast_tuple
sat/sgm/modules/cp_enc_dec.py:28–29 ·
view source on GitHub ↗
(t, length=1)
Source
from the content-addressed store, hash-verified
26
27
28
def
cast_tuple(t, length=1):
29
return
t
if
isinstance(t, tuple)
else
((t,) * length)
30
31
32
def
divisible_by(num, den):
Callers
1
__init__
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected