MCPcopy
hub / github.com/descriptinc/descript-audio-codec / run

Function run

dac/__main__.py:12–28  ·  view source on GitHub ↗

Run stages. Parameters ---------- stage : str Stage to run

(stage: str)

Source from the content-addressed store, hash-verified

10
11
12def run(stage: str):
13 """Run stages.
14
15 Parameters
16 ----------
17 stage : str
18 Stage to run
19 """
20 if stage not in STAGES:
21 raise ValueError(f"Unknown command: {stage}. Allowed commands are {STAGES}")
22 stage_fn = globals()[stage]
23
24 if stage == "download":
25 stage_fn()
26 return
27
28 stage_fn()
29
30
31if __name__ == "__main__":

Callers 3

test_reconstructionFunction · 0.90
test_compressionFunction · 0.90
__main__.pyFile · 0.85

Calls

no outgoing calls

Tested by 2

test_reconstructionFunction · 0.72
test_compressionFunction · 0.72