Skip to main content

About

Python library for handling XrdPatterns including support for importing from data files, exporting as json file, visualization and postprocessing. The data file import functionalities are largely built on the C++ library xylib so beyond a standard python install this library also requires:

  • A C++ compiler and standard library
  • A C++ to python bridge (Swig)

Installation

System level requirements

For Ubuntu 22.04:

sudo apt install build-essential	# GNU C++ compiler
sudo apt install libboost-all-dev       # C++ libraries provided by Boost
sudo apt install swig 			# python -> C++ bridge

For Windows >10 you may try the following in PowerShell (requires Chocolatey):

choco install mingw  # C++ compiler and std library
choco install swig   # python -> C++ bridge

Python library

Once the system level requirements are installed, the library can be installed using pip:

pip install xrdpattern

Supported formats

Loading Diffractogram patterns from the following data formats is supported:

  • Plain Text Files

    • Comma seperated values (.csv)
    • Two column data (.xy)
    • Crystallographic Information File for Powder Diffraction (.cif)
    • Custom XrdPattern json format (.json)
    • Plain text tab seperated values (.txt) (! In progress)
    • PANalytical XRDML (.xrdml)
    • Freiberg Instruments XSYG (.xysg)
  • Binaries:

    • Siemens/Bruker RAW ver. 1/2/3/4 (.raw)
    • Stoe RAW (.raw) (! In progress)
    • Siemens/Bruker UXD (.uxd)
    • Philips UDF (.udf)
    • Philips RD ver. 3/5 (.rd)
    • Rigaku DAT (.dat)
    • RIET7 DAT (.dat)
    • Sietronics Sieray CPI (.cpi)
    • XFIT/Koalariet XDD (.xdd)
    • DBWS/DMPLOT data file (.dbw, .rit, .neu)
    • Canberra CNF (.cnf)
    • Canberra AccuSpec MCA (.mca)
    • χPLOT CHI (.chi)
    • Bruker SPC (.spc)

When using Xrdpattern.load(fpath=xrdfile.suffix), the format will be automatically determined from the suffix unless there are are several formats with this format as with .raw and .dat. In this case the format will need to be manually specified.

Metadata

Release files for xrdpattern 0.9.9

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

Source distribution (sdist)

Source distribution for xrdpattern 0.9.9
File Size Uploaded Provenance Actions
xrdpattern-0.9.9.tar.gz 3.4 MB Without provenance Details for xrdpattern-0.9.9.tar.gz

Release files / xrdpattern-0.9.9.tar.gz

Download URL xrdpattern-0.9.9.tar.gz
Size 3.4 MB
Tags Source
SHA-256 checksum
How to use checksums
0b56b899d495fcc9ddcf343807275892b2e63b31ea49ae1873cae3d90fa2384d
BLAKE2b-256 checksum
How to use checksums
a459463828625e2faac86217490a477e57ee32eba31109eceb81e96ebabec320
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Security for xrdpattern 0.9.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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