Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to handle multiple paths for QIBOLAB_PLATFORMS #1161

Open
andrea-pasquale opened this issue Feb 27, 2025 · 0 comments
Open

Document how to handle multiple paths for QIBOLAB_PLATFORMS #1161

andrea-pasquale opened this issue Feb 27, 2025 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@andrea-pasquale
Copy link
Contributor

Qibolab is able to handle multiple paths in the environment variable QIBOLAB_PLATFORMS.

def _platforms_paths() -> list[Path]:
"""Get path to repository containing the platforms.
Path is specified using the environment variable QIBOLAB_PLATFORMS.
"""
paths = os.environ.get(PLATFORMS)
if paths is None:
raise_error(RuntimeError, f"Platforms path ${PLATFORMS} unset.")
return [Path(p) for p in paths.split(os.pathsep)]

However, this feature is not documented since all examples in the documentation are referring to a single path. This could be relevant soon for some ongoing PRs in qibocal: qiboteam/qibocal#1103 qiboteam/qibocal#1101

@andrea-pasquale andrea-pasquale added the documentation Improvements or additions to documentation label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant