INNER CODE UNIT · Python

manager_run

PKU-EMBL/BASALT · BASALT_setup_China_mainland.py:454

def manager_run(executable: str, env_name: str, command: Sequence[str]) -> List[str]:
    """Run a command without requiring shell activation."""
    return [executable, "run", "--name", env_name] + [str(item) for item in command]


def install_models(
    args: argparse.Namespace,
    executable: str,
    env_name: str,
    source: Path,
    environment: Dict[str, str],
) -> None:
    """Invoke the canonical model downloader inside the BASALT environment."""
    if args.model_source == "none":
        print("Skipping model weights (--model-source none).")
        return

    model_dir = Path(args.model_dir).expanduser().resolve()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…