playmolecule 2.8.2__tar.gz → 2.8.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {playmolecule-2.8.2/playmolecule.egg-info → playmolecule-2.8.4}/PKG-INFO +1 -1
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule/__init__.py +5 -1
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule/_backends/_http.py +8 -1
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule/_backends/_slurm.py +5 -1
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule/_protocols.py +32 -22
- {playmolecule-2.8.2 → playmolecule-2.8.4/playmolecule.egg-info}/PKG-INFO +1 -1
- playmolecule-2.8.4/playmolecule.egg-info/scm_version.json +8 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_backends.py +7 -2
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_http_channel.py +6 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule.py +1 -1
- playmolecule-2.8.2/playmolecule.egg-info/scm_version.json +0 -8
- {playmolecule-2.8.2 → playmolecule-2.8.4}/.github/workflows/docs.yml +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/.github/workflows/pythonpublish.yml +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/.gitignore +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/LICENSE +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/MANIFEST.in +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/Makefile +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/README.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/Makefile +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/getversion.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/make.bat +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/.gitignore +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/conf.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/explanation/apps-and-manifests.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/explanation/architecture.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/explanation/artifacts-and-files.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/explanation/executable-directory.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/explanation/index.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/explanation/job-lifecycle.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/howto/check-job-status.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/howto/index.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/howto/install-apps-for-a-cluster.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/howto/list-and-inspect-apps.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/howto/log-in-to-the-http-backend.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/howto/pass-input-files-to-an-app.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/howto/run-an-app-locally.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/howto/run-an-app-on-slurm.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/howto/run-built-in-app-tests.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/howto/run-many-jobs-on-one-gpu.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/howto/select-an-app-version.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/howto/switch-between-docker-and-apptainer.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/howto/update-installed-apps.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/howto/use-app-artifacts.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/index.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/installation.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/llms-full.txt +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/reference/cli.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/reference/environment-variables.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/reference/index.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/tutorials/01-first-app-run.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/tutorials/02-using-app-versions-and-tests.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/tutorials/03-running-on-slurm.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/tutorials/index.md +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule/_appfiles.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule/_backends/__init__.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule/_backends/_docker.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule/_backends/_local.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule/_channels.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule/_cli.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule/_config.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule/_devutils.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule/_dump.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule/_dynamicfunction.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule/_identity.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule/_lock.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule/_public_api.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule/_tests.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule/_update.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule/_validation.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule/apps/__init__.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule/logging.ini +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule/share/apptainer_run.sh +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule/share/docker_run.sh +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule.egg-info/SOURCES.txt +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule.egg-info/dependency_links.txt +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule.egg-info/entry_points.txt +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule.egg-info/requires.txt +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule.egg-info/scm_file_list.json +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/playmolecule.egg-info/top_level.txt +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/pyproject.toml +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/setup.cfg +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/3ptb.pdb +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/bench_dump_api.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/conftest.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/scratch_import_probe.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/scratch_test_app.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_app_docs_namespace.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_app_lock.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_app_wrapper_scratch.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_apps_linking.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_channel_config.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_channels.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_defer_discovery.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_describe_apps.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_docker_backend.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_docker_docs_split.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_docker_run_label.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_dump_api.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_find_apps_resilient.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_func_name_lowercase.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_get_app_list_channels.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_http_backend.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_http_docs_split.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_identity.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_local_backend.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_local_backend_cancel.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_local_docs_and_lowercase.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/acellera-protocols/protocols/__init__.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/acellera-protocols/protocols/crypticscout/__init__.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/acellera-protocols/protocols/crypticscout/v1/__init__.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/acellera-protocols/protocols/crypticscout/v1/crypticscout.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/acellera-protocols/protocols/crypticscout/v1/files/tutorials/my_tutorial.ipynb +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinprepare/v1/ProteinPrepare_v1.json +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinprepare/v1/files/datasets/3ptb.pdb +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinprepare/v1/files/tests/3ptb.pdb +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinprepare/v1/files/tests/587HG92V.pdb +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinprepare/v1/files/tests/reprepare.pickle +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinprepare/v1/files/tests/web_content.pickle +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinprepare/v1/files/tutorials/learn_this_app.ipynb +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinprepare/v1/run.sh +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinpreparenew/v1/ProteinPrepareNew_v1.json +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinpreparenew/v1/files/datasets/3ptb.pdb +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinpreparenew/v1/files/tests/3ptb.pdb +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinpreparenew/v1/files/tests/587HG92V.pdb +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinpreparenew/v1/files/tests/reprepare.pickle +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinpreparenew/v1/files/tests/web_content.pickle +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinpreparenew/v1/files/tutorials/learn_this_app.ipynb +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinpreparenew/v1/run.sh +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinpreparenew/v2/ProteinPrepareNew_v1.json +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinpreparenew/v2/files/datasets/3ptb.pdb +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinpreparenew/v2/files/tests/3ptb.pdb +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinpreparenew/v2/files/tests/587HG92V.pdb +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinpreparenew/v2/files/tests/reprepare.pickle +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinpreparenew/v2/files/tests/web_content.pickle +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinpreparenew/v2/files/tutorials/learn_this_app.ipynb +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinpreparenew/v2/run.sh +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apptainer_run.sh +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/datasets/3ptb.pdb +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/datasets/datasets.json +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_pmbackend.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_pull_images.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_reload_apps.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_render_channel_fallback.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_render_runsh_linking.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_runsh_render.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_skip_result_download_config.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_slpm_manifest.py +0 -0
- {playmolecule-2.8.2 → playmolecule-2.8.4}/update_license_header.py +0 -0
|
@@ -80,5 +80,9 @@ if _config.registries is not None and not _config.defer_discovery:
|
|
|
80
80
|
if getattr(module, "protocols", None) is None:
|
|
81
81
|
setattr(module, "protocols", __find_protocols_by_import(parent_module=__name__))
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
# Skills and protocols are one package: playmolecule.skills, with
|
|
84
|
+
# playmolecule.protocols kept as an alias for backward compatibility
|
|
85
|
+
setattr(module, "skills", module.protocols)
|
|
86
|
+
if module.protocols is not None:
|
|
84
87
|
sys.modules[__name__ + ".protocols"] = module.protocols
|
|
88
|
+
sys.modules[__name__ + ".skills"] = module.protocols
|
|
@@ -46,7 +46,7 @@ def _channel_query_for_slpm(slpm_path: str):
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
def _build_run_url(
|
|
49
|
-
base_url: str, slpm_path: str, job_dir: str, channel, ncpu=None
|
|
49
|
+
base_url: str, slpm_path: str, job_dir: str, channel, ncpu=None, nvidia_mps=False
|
|
50
50
|
) -> str:
|
|
51
51
|
"""Build the ``/apps/<slpm>/run`` URL, omitting optional params when ``None``."""
|
|
52
52
|
url = f"{base_url}/apps/{slpm_path}/run?job_dir={job_dir}"
|
|
@@ -54,6 +54,8 @@ def _build_run_url(
|
|
|
54
54
|
url += f"&channel={channel}"
|
|
55
55
|
if ncpu is not None:
|
|
56
56
|
url += f"&ncpu={int(ncpu)}"
|
|
57
|
+
if nvidia_mps:
|
|
58
|
+
url += "&nvidia_mps=true"
|
|
57
59
|
return url
|
|
58
60
|
|
|
59
61
|
|
|
@@ -647,6 +649,7 @@ class _HTTPExecutionBackend:
|
|
|
647
649
|
job_id: Optional[str] = None,
|
|
648
650
|
prefix: Optional[str] = None,
|
|
649
651
|
ncpu: Optional[int] = None,
|
|
652
|
+
nvidia_mps: bool = False,
|
|
650
653
|
_logger: bool = True,
|
|
651
654
|
**kwargs,
|
|
652
655
|
) -> tuple[str, Optional[str]]:
|
|
@@ -666,6 +669,9 @@ class _HTTPExecutionBackend:
|
|
|
666
669
|
CPUs to request for the job. The server bounds this by what the
|
|
667
670
|
job's priority tier allows; omitted means the app manifest's own
|
|
668
671
|
``ncpu``.
|
|
672
|
+
nvidia_mps : bool
|
|
673
|
+
Run the job under an NVIDIA MPS daemon so its GPU processes share
|
|
674
|
+
the GPU. Only SLURM-backed servers accept it.
|
|
669
675
|
_logger : bool
|
|
670
676
|
Whether to log
|
|
671
677
|
**kwargs
|
|
@@ -717,6 +723,7 @@ class _HTTPExecutionBackend:
|
|
|
717
723
|
f"{prefix}{job_id}",
|
|
718
724
|
channel,
|
|
719
725
|
ncpu=ncpu,
|
|
726
|
+
nvidia_mps=nvidia_mps,
|
|
720
727
|
)
|
|
721
728
|
res = session.post(
|
|
722
729
|
run_url,
|
|
@@ -118,6 +118,7 @@ def _submit_slurm(
|
|
|
118
118
|
dirname: str,
|
|
119
119
|
runsh: str,
|
|
120
120
|
execution_resources: Optional[Dict[str, Any]] = None,
|
|
121
|
+
nvidia_mps: bool = False,
|
|
121
122
|
**kwargs,
|
|
122
123
|
) -> Any:
|
|
123
124
|
"""Submit a job to SLURM.
|
|
@@ -130,6 +131,8 @@ def _submit_slurm(
|
|
|
130
131
|
Run script filename
|
|
131
132
|
execution_resources : dict, optional
|
|
132
133
|
Default execution resources from app manifest
|
|
134
|
+
nvidia_mps : bool
|
|
135
|
+
Run the job under an NVIDIA MPS daemon so its GPU processes share the GPU.
|
|
133
136
|
**kwargs
|
|
134
137
|
Additional SLURM options (partition, ncpu, ngpu, etc.)
|
|
135
138
|
|
|
@@ -154,7 +157,8 @@ def _submit_slurm(
|
|
|
154
157
|
|
|
155
158
|
_export_ncpu(sl)
|
|
156
159
|
|
|
157
|
-
sl.
|
|
160
|
+
# jobqueues' MPS path ignores sl.runscript, so it goes in as a list.
|
|
161
|
+
sl.submit([dirname], runscripts=[runsh], nvidia_mps=nvidia_mps)
|
|
158
162
|
_write_slurm_marker(
|
|
159
163
|
dirname, getattr(sl, "jobname", None), getattr(sl, "user", None)
|
|
160
164
|
)
|
|
@@ -22,7 +22,7 @@ class _AliasLoader:
|
|
|
22
22
|
class _AliasFinder:
|
|
23
23
|
"""Redirect imports of ``alias_prefix.*`` to ``real_prefix.*``.
|
|
24
24
|
|
|
25
|
-
This is needed because the real
|
|
25
|
+
This is needed because the real protocols package may be
|
|
26
26
|
Nuitka-compiled. Nuitka-compiled submodules can only be imported
|
|
27
27
|
under their original fully-qualified name, so simply aliasing the
|
|
28
28
|
top-level package in ``sys.modules`` is not enough to make
|
|
@@ -48,32 +48,42 @@ class _AliasFinder:
|
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
def __find_protocols_by_import(parent_module: str = "playmolecule"):
|
|
51
|
-
"""Find protocols by importing the
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
51
|
+
"""Find skills and protocols by importing the installed package.
|
|
52
|
+
|
|
53
|
+
They ship in the ``acellera-skills`` / ``acellera-skills-playmolecule``
|
|
54
|
+
packages as the top-level ``skills`` module (formerly
|
|
55
|
+
``acellera-protocols`` / ``protocols``, still accepted). Registers the
|
|
56
|
+
package in :data:`sys.modules` as ``<parent>.skills`` and, for backward
|
|
57
|
+
compatibility, ``<parent>.protocols``, and installs meta-path finders so
|
|
58
|
+
that submodule imports such as ``<parent>.skills.foo.bar`` resolve to
|
|
59
|
+
``skills.foo.bar``. This is required because the package may be
|
|
60
|
+
Nuitka-compiled, and Nuitka-compiled submodules can only be imported under
|
|
61
|
+
their original fully-qualified name.
|
|
59
62
|
|
|
60
63
|
Returns the module if it exists, None otherwise.
|
|
61
64
|
"""
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
for real_name in ("skills", "protocols"):
|
|
66
|
+
try:
|
|
67
|
+
real = importlib.import_module(real_name)
|
|
68
|
+
except ImportError:
|
|
69
|
+
continue
|
|
70
|
+
# Skip namespace packages, e.g. a project's own ./skills folder
|
|
71
|
+
if getattr(real, "__file__", None) is not None:
|
|
72
|
+
break
|
|
73
|
+
else:
|
|
65
74
|
return None
|
|
66
75
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
for name in ("skills", "protocols"):
|
|
77
|
+
alias = f"{parent_module}.{name}"
|
|
78
|
+
sys.modules[alias] = real
|
|
79
|
+
alias_dot = alias + "."
|
|
80
|
+
if not any(
|
|
81
|
+
isinstance(f, _AliasFinder) and f._alias == alias_dot
|
|
82
|
+
for f in sys.meta_path
|
|
83
|
+
):
|
|
84
|
+
sys.meta_path.insert(0, _AliasFinder(alias, real_name))
|
|
85
|
+
|
|
86
|
+
return real
|
|
77
87
|
|
|
78
88
|
|
|
79
89
|
def __find_protocols_by_filesystem(local_registry, parent_module="playmolecule"):
|
|
@@ -1003,8 +1003,8 @@ def test_submit_slurm_exports_manifest_ncpu(tmp_path, monkeypatch):
|
|
|
1003
1003
|
self.jobname = "job"
|
|
1004
1004
|
self.runscript = None
|
|
1005
1005
|
|
|
1006
|
-
def submit(self,
|
|
1007
|
-
|
|
1006
|
+
def submit(self, dirs, runscripts=None, nvidia_mps=False):
|
|
1007
|
+
self.submitted = (dirs, runscripts, nvidia_mps)
|
|
1008
1008
|
|
|
1009
1009
|
monkeypatch.setattr(jobqueues.slurmqueue, "SlurmQueue", FakeSlurmQueue)
|
|
1010
1010
|
|
|
@@ -1015,6 +1015,11 @@ def test_submit_slurm_exports_manifest_ncpu(tmp_path, monkeypatch):
|
|
|
1015
1015
|
# explicit override reaches it too
|
|
1016
1016
|
sl = _submit_slurm(str(tmp_path), "run.sh", {"ncpu": 1, "ngpu": 1}, ncpu=8)
|
|
1017
1017
|
assert sl.prerun == ["export PM_NCPU=8"]
|
|
1018
|
+
assert sl.submitted == ([str(tmp_path)], ["run.sh"], False)
|
|
1019
|
+
|
|
1020
|
+
# nvidia_mps reaches the jobscript renderer, not SlurmQueue's setattr
|
|
1021
|
+
sl = _submit_slurm(str(tmp_path), "run.sh", {"ngpu": 1}, nvidia_mps=True)
|
|
1022
|
+
assert sl.submitted[2] is True
|
|
1018
1023
|
|
|
1019
1024
|
|
|
1020
1025
|
def test_http_run_accepts_ncpu():
|
|
@@ -58,3 +58,9 @@ def test_run_url_includes_channel_when_set():
|
|
|
58
58
|
url
|
|
59
59
|
== "http://backend/apps/acepockets.v3.get_bonds/run?job_dir=j1&channel=dev"
|
|
60
60
|
)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def test_run_url_includes_nvidia_mps_only_when_set():
|
|
64
|
+
url = _build_run_url("http://backend", "a.v1.f", "j1", None, nvidia_mps=True)
|
|
65
|
+
assert url == "http://backend/apps/a.v1.f/run?job_dir=j1&nvidia_mps=true"
|
|
66
|
+
assert "nvidia_mps" not in _build_run_url("http://backend", "a.v1.f", "j1", None)
|
|
@@ -482,7 +482,7 @@ def test_submit_slurm_writes_marker(monkeypatch):
|
|
|
482
482
|
self.jobname = None
|
|
483
483
|
self.user = "tester"
|
|
484
484
|
|
|
485
|
-
def submit(self,
|
|
485
|
+
def submit(self, dirs, runscripts=None, nvidia_mps=False):
|
|
486
486
|
if self.jobname is None: # mirrors SlurmQueue._autoJobName behaviour
|
|
487
487
|
self.jobname = "run_test_12345"
|
|
488
488
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/howto/switch-between-docker-and-apptainer.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{playmolecule-2.8.2 → playmolecule-2.8.4}/docs/source/tutorials/02-using-app-versions-and-tests.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinprepare/v1/run.sh
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinpreparenew/v1/run.sh
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{playmolecule-2.8.2 → playmolecule-2.8.4}/tests/test_playmolecule/apps/proteinpreparenew/v2/run.sh
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|