-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from jacanchaplais/feature/edge-efficient-16
Improved COO graph construction algorithm #16
- Loading branch information
Showing
9 changed files
with
292 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ name: tests | |
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
test: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,40 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.2.0 | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- repo: https://github.com/psf/black | ||
rev: 22.3.0 | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- id: check-merge-conflict | ||
- id: debug-statements | ||
- id: name-tests-test | ||
args: ["--pytest-test-first"] | ||
- id: no-commit-to-branch | ||
args: ["--branch", "main", "--branch", "develop"] | ||
- repo: https://github.com/psf/black | ||
rev: 23.3.0 | ||
hooks: | ||
- id: black | ||
- id: black | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
name: isort (python) | ||
args: ["--profile", "black", "--filter-files"] | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.4.0 | ||
hooks: | ||
- id: pyupgrade | ||
args: ["--py38-plus"] | ||
- repo: https://github.com/PyCQA/autoflake | ||
rev: v2.1.1 | ||
hooks: | ||
- id: autoflake | ||
args: [ | ||
"--in-place", | ||
"--remove-all-unused-imports", | ||
"--ignore-init-module-imports", | ||
"--expand-star-imports", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
showerpipe | ||
========== | ||
|
||
|PyPI version| |Tests| |Documentation| |License| |Code style: black| | ||
|
||
Provides a Pythonic data pipeline for showering and hadronisation | ||
programs in HEP. | ||
|
||
Currently wraps interface for Pythia 8, with plans for Herwig and | ||
Ariadne in future releases. | ||
|
||
Installation | ||
------------ | ||
|
||
This package requires Pythia 8 to be installed on your system, and | ||
available in your ``PYTHONPATH``. | ||
|
||
It also requires the ``PYTHIA8DATA`` environment variable to be set. | ||
This is the path to the ``xmldoc/`` directory under Pythia’s ``share`` | ||
directory. You can do something like this in your shell config: | ||
|
||
.. code:: bash | ||
export PYTHIA8DATA=/home/$USER/pythia82xx/share/Pythia8/xmldoc | ||
Without an existing Pythia installation (using conda) | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
If this is not already the case, a very convenient solution is to | ||
install it via ``conda``. This is fast, and automatically sets the | ||
``PYTHIA8DATA`` environment variable when you activate the virtual | ||
environment. An environment file is provided in the root of this repo, | ||
which will install all requirements and then showerpipe, automatically. | ||
The virtual environment can be created using: | ||
|
||
.. code:: bash | ||
conda env create -f environment.yml | ||
If you have an existing conda environment, you can update it by | ||
activating the environment and then using: | ||
|
||
.. code:: bash | ||
conda env update -f environment.yml --prune | ||
With existing Pythia installation | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
Simply: | ||
|
||
.. code:: bash | ||
pip install showerpipe | ||
.. |PyPI version| image:: https://img.shields.io/pypi/v/showerpipe.svg | ||
:target: https://pypi.org/project/showerpipe/ | ||
.. |Tests| image:: https://github.com/jacanchaplais/showerpipe/actions/workflows/tests.yml/badge.svg | ||
.. |Documentation| image:: https://readthedocs.org/projects/showerpipe/badge/?version=latest | ||
:target: https://showerpipe.readthedocs.io | ||
.. |License| image:: https://img.shields.io/pypi/l/showerpipe | ||
:target: https://raw.githubusercontent.com/jacanchaplais/showerpipe/main/LICENSE.txt | ||
.. |Code style: black| image:: https://img.shields.io/badge/code%20style-black-000000.svg | ||
:target: https://github.com/psf/black |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.