Skip to main content

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

extra_proposal-0.1.4.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

extra_proposal-0.1.4-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

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

Hashes for extra_proposal-0.1.4.tar.gz
Algorithm Hash digest
SHA256 432d06b57422801dd79606c0caa92b6dd60a177cc0da9f255afe226be7aae272
MD5 d7184535d42d9716a07f529a98e10d84
BLAKE2b-256 e5de1ac822b3bd51063171f291b19d1d9b66bc758882d948378f29ec76d3d243

See more details on using hashes here.

Provenance

The following attestation bundles were made for extra_proposal-0.1.4.tar.gz:

Publisher: tests.yml on European-XFEL/extra-proposal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for extra_proposal-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 829c6010713f38222d59fb18d4c07afe0e1c53b8bfbb5acaecc4a63e985f0ca1
MD5 bf3126fefc391dc217478e2713b435ab
BLAKE2b-256 5a4157d263c26bc7ec8e8fade3275dd1e0e8969f31ca4ec9bec6e6677571d7a7

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page