An interface to a European XFEL proposal
Project description
EXtra-proposal
A small Python library to work with European XFEL proposals: list runs, read metadata from MyMDC, open data with EXtra-data, access DAMNIT results, and make simple run timelines.
Install
EXtra-proposal is available in our Python environment on the Maxwell cluster:
module load exfel exfel-python
You can also install it from from PyPI to use in other environments with Python 3.9+:
pip install extra-proposal
# Optional extras, installs: extra-data, damnit, pandas
pip install "extra-proposal[extra]"
Quick start
from extra_proposal import Proposal
# Create a proposal object
prop = Proposal(1234)
print(prop.title()) # Proposal Title from MyMDC
print(prop.runs()) # List runs found in /raw on disk
# Per-run helpers
print(prop[1].sample_name())
print(prop.run_type(1))
print(prop.run_techniques(1))
# Open data (requires EXtra-data)
run = prop[1].data()
# Open DAMNIT results (required damnit)
damnit = prop[1].damnit()
# Plot a simple timeline
prop[1].plot_timeline()
Environment and auth
By default MyMDC data is accessed using Zwop credentials stored under the
proposal at usr/mymdc-credentials.yml (created automatically when available).
It is possible to use your MyMdc
Oauth credentials instead, in
case ZWOP isn't available or the metadata endpoint isn't accessible through
Zwop:
Proposal(8034, user_id="...", user_secret="...", user_email="...")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file extra_proposal-0.1.4.tar.gz.
File metadata
- Download URL: extra_proposal-0.1.4.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
432d06b57422801dd79606c0caa92b6dd60a177cc0da9f255afe226be7aae272
|
|
| MD5 |
d7184535d42d9716a07f529a98e10d84
|
|
| BLAKE2b-256 |
e5de1ac822b3bd51063171f291b19d1d9b66bc758882d948378f29ec76d3d243
|
Provenance
The following attestation bundles were made for extra_proposal-0.1.4.tar.gz:
Publisher:
tests.yml on European-XFEL/extra-proposal
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
extra_proposal-0.1.4.tar.gz -
Subject digest:
432d06b57422801dd79606c0caa92b6dd60a177cc0da9f255afe226be7aae272 - Sigstore transparency entry: 829168347
- Sigstore integration time:
-
Permalink:
European-XFEL/extra-proposal@20a1e4bc23eb92e910f1adbaeb08abc4e4d9b3b7 -
Branch / Tag:
refs/tags/0.1.4 - Owner: https://github.com/European-XFEL
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
tests.yml@20a1e4bc23eb92e910f1adbaeb08abc4e4d9b3b7 -
Trigger Event:
release
-
Statement type:
File details
Details for the file extra_proposal-0.1.4-py3-none-any.whl.
File metadata
- Download URL: extra_proposal-0.1.4-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
829c6010713f38222d59fb18d4c07afe0e1c53b8bfbb5acaecc4a63e985f0ca1
|
|
| MD5 |
bf3126fefc391dc217478e2713b435ab
|
|
| BLAKE2b-256 |
5a4157d263c26bc7ec8e8fade3275dd1e0e8969f31ca4ec9bec6e6677571d7a7
|
Provenance
The following attestation bundles were made for extra_proposal-0.1.4-py3-none-any.whl:
Publisher:
tests.yml on European-XFEL/extra-proposal
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
extra_proposal-0.1.4-py3-none-any.whl -
Subject digest:
829c6010713f38222d59fb18d4c07afe0e1c53b8bfbb5acaecc4a63e985f0ca1 - Sigstore transparency entry: 829168351
- Sigstore integration time:
-
Permalink:
European-XFEL/extra-proposal@20a1e4bc23eb92e910f1adbaeb08abc4e4d9b3b7 -
Branch / Tag:
refs/tags/0.1.4 - Owner: https://github.com/European-XFEL
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
tests.yml@20a1e4bc23eb92e910f1adbaeb08abc4e4d9b3b7 -
Trigger Event:
release
-
Statement type: