Skip to main content

Utilities for the HS3 standard in high-energy physics

Project description

HS3 Utilities

Python HS$^3$ Utilities (hs3) is a collection of command-line tools and utilities designed to support the High-Energy Physics Statistics Serialization Standard (HS$^3$). This package provides tools for working with HS$^3$ JSON files, including functionality for generating GraphML representations and diffing HS3 files.

Features

  • hs3diff: A tool to compare two HS$^3$ JSON files and generate a diff.
  • hs3tographml: A tool to convert HS$^3$ JSON files into GraphML format for visualization.

Installation

You can install HS3 Utilities from PyPI using pip:

pip install hs3

Alternatively, you can clone this repository and install the package locally:

git clone https://github.com/hep-statistics-serialization-standard/python-hep-statistics-serialization-standard
cd python-hep-statistics-serialization-standard
pip install .

Usage

hs3diff

hs3diff is used to compare two HS3 JSON files and output the differences.

Usage Example:

hs3diff file1.json file2.json

This command will output the differences between file1.json and file2.json.

hs3tographml

`hs3tographml* converts an HS3 JSON file into a GraphML file, which can be visualized using tools like Gephi.

Usage Example:

hs3tographml -i model.json -o model.graphml

This command will convert model.json into model.graphml.

Options

  • -i, --input: Input JSON file (required).
  • -o, --output: Output GraphML file (required).
  • -l, --likelihood: Name of the likelihood to use (optional).

Contributing

Contributions are welcome! If you’d like to contribute to HS3 Utilities, please follow these steps:

  • Fork the repository.
  • Create a new branch (git checkout -b feature-branch).
  • Make your changes and commit them (git commit -am 'Add new feature').
  • Push to the branch (git push origin feature-branch).
  • Open a Pull Request.

Please ensure your code follows the project's coding standards and is well-tested.

License

This project is licensed under the BSD 3-Clause License. See the LICENSE file for details.

Authors

Acknowledgments

Special thanks to the contributors and the HEP statistics standard community for their ongoing support and feedback.

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

hs3-1.0.1.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

hs3-1.0.1-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file hs3-1.0.1.tar.gz.

File metadata

  • Download URL: hs3-1.0.1.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.5

File hashes

Hashes for hs3-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c77cfd4712cbe1d352e326c11de9541e89664e7eeb5cbe9ab28a31bbc89b5177
MD5 7514e8a99ea5f08813271b4c270608d9
BLAKE2b-256 0a21d3afbf71c734245d1c363fb508fec855a21e20b3bd793d282a0225dbb2d7

See more details on using hashes here.

File details

Details for the file hs3-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: hs3-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.5

File hashes

Hashes for hs3-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 41ff70fb306a3593660106f8f8b58cfcab3c2d6d152f62045711f8730c093634
MD5 3c5d0c6d84c61dd6c8316fb73091f407
BLAKE2b-256 057af940d1d253cfdccce412093d0495a1a0f607dd31f76283501d861b6c4265

See more details on using hashes here.

Supported by

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