MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / timed_name

Function timed_name

SwissArmyTransformer/sat/generation/utils.py:23–27  ·  view source on GitHub ↗
(prefix, suffix=None, path=None)

Source from the content-addressed store, hash-verified

21
22
23def timed_name(prefix, suffix=None, path=None):
24 return os.path.join(
25 path,
26 f"{prefix}-{datetime.now().strftime('%m-%d-%H-%M-%S')}{suffix}"
27 )
28
29def save_multiple_images(imgs, path, debug=True):
30 # imgs: list of tensor images

Callers 2

processFunction · 0.90
processFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected