Skip to main content

GWCloud is a service used to handle both the submission of Bilby jobs to a supercomputer queue and the obtaining of the results produced by these jobs. While there is a web interface for this service, which is recommended for beginners, this package can be used to allow Bilby job submission and manipulation from Python scripts.

Check out the documentation for more information.

Installation

The gwcloud-python package can be installed with

pip install gwcloud-python

Example

>>> from gwcloud_python import GWCloud
>>> gwc = GWCloud(token='<user_api_token_here>')
>>> job = gwc.get_official_job_list()[0]
>>> job.save_corner_plot_files()

100%|██████████████████████████████████████| 3.76M/3.76M [00:00<00:00, 5.20MB/s]
All 2 files saved!

GWFlow

To upsert a GWFlow job record and upload its pending files:

from gwcloud_python import GWCloud

gwc = GWCloud(api_token="<your-token>", endpoint="<endpoint>")

# Upsert a job (idempotent — creates or updates by sname)
result = gwc.upsert_gwflow_job(
    sname="S230101a",
    metadata={"key": "value"},
    files=[{"path": "/frames/H1.gwf", "file_name": "H1.gwf", "analysis_uid": "uid-001"}],
)

# Upload each pending file
for pending_file in result.files_pending:
    gwc.upload_gwflow_file(pending_file.id, f"/local/path/{pending_file.file_name}")

To list GWFlow jobs, fetch a job by its super-name, and download one of its files:

from gwcloud_python import GWCloud

gwc = GWCloud(api_token="<your-token>", endpoint="<endpoint>")

jobs = gwc.get_gwflow_job_list(search="S230101a", time_range="all", include_pruned=False)
job = gwc.get_gwflow_job(sname="S230101a")
if job is not None and job.files:
    gwc.download_gwflow_file(job.files[0].download_token, "/local/path/file.h5")

Other GWFlow methods include:

  • get_gwflow_pending_files — get all GWFlow files that have not yet been mirrored.

  • link_bilby_job_to_gwflow — link a Bilby job to a GWFlow analysis.

See the GWFlow guide in the documentation for more details.

Release files for gwcloud-python 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gwcloud-python 2.1.0
File Size Uploaded
gwcloud_python-2.1.0.tar.gz 25.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gwcloud-python 2.1.0
File Interpreter ABI Platform
gwcloud_python-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 59.3 kB

Release files / gwcloud_python-2.1.0.tar.gz

Download URL gwcloud_python-2.1.0.tar.gz
Size 25.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3acec90f8d569d9d7fdd968bb0121f656e41fe10ab4b3bf2ce817b539b7d4d50
BLAKE2b-256 checksum
How to use checksums
c81ce298e1f9dade10b6d8d017e688f357d203268f344c98fb445688f994ae3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.3 Linux/7.0.0-3-pve

Release files / gwcloud_python-2.1.0-py3-none-any.whl

Download URL gwcloud_python-2.1.0-py3-none-any.whl
Size 33.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b35ccdb0119ea3803ead98b0d5fb2183114b639bdb7e29d1dda47081e892e717
BLAKE2b-256 checksum
How to use checksums
23446493ceb4c898cc29cea7ffb6bb4af53c9001dcb919e3d5e520f793355fc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.3 Linux/7.0.0-3-pve

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files

2.0.0

2 release files

1.12.1

2 release files

1.12.0

2 release files

1.11.0

2 release files

1.9.1

2 release files

1.9.0

2 release files

1.8.0

2 release files

1.7.1

2 release files

1.7.0

2 release files

1.6.1

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page