Skip to content

Commit

Permalink
Merge pull request #77 from zfit/chore_16
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-eschle authored Apr 14, 2022
2 parents 496ae84 + a908e81 commit 8138971
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 32 deletions.
6 changes: 4 additions & 2 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ Development Lead

* Albert Puig Navarro <[email protected]>

Core Developers
---------------
Developers
-----------

* Jonas Eschle <[email protected]>
* Simon Thor
* Eduardo Rodrigues <[email protected]>

Contributors
------------
Expand Down
19 changes: 5 additions & 14 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,11 @@ Develop

Major Features and Improvements
-------------------------------

Behavioral changes
------------------


Bug fixes and small changes
---------------------------

Requirement changes
-------------------


Thanks
------
- Improved GenMultiDecay to have better control on the decay mass of non-stable particles.
- Added a `particle_model_map` argument to the `GenMultiDecay` class. This is a
dict where the key is a particle name and the value is a mass function name.
The feature can be seen in the
`GenMultiDecay Tutorial <https://github.com/zfit/phasespace/blob/master/docs/GenMultiDecay_Tutorial.ipynb>`_.


1.5.0 (27 Nov 2021)
Expand Down
21 changes: 8 additions & 13 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,36 +79,31 @@ broad peak).
Installing
==========

``phasespace`` is available on conda-forge and pip.

To install ``phasespace`` with conda, run:


.. code-block:: console
$ conda install phasespace -c conda-forge
To install with pip:

.. code-block:: console
$ pip install phasespace
This is the preferred method to install ``phasespace``, as it will always install the most recent stable release.

For the newest development version, which may be unstable, you can install the version from git with
To install the necessary dependencies to be used with
`DecayLanguage <https://github.com/scikit-hep/decaylanguage>`_, use

.. code-block:: console
$ pip install git+https://github.com/zfit/phasespace
$ pip install phasespace[fromdecay]
How to use
==========

Phasespace can directly be used to generate from a DecayChain using the
`DecayLanguage <https://github.com/scikit-hep/decaylanguage>`_ package as
`explained in the tutorial <https://phasespace.readthedocs.io/en/latest/GenMultiDecay_Tutorial.html>`_.

The generation of simple `n`-body decays can be done using the ``nbody_decay`` shortcut to create a decay chain
with a very simple interface: one needs to pass the mass of the top particle and the masses of the children particle as
a list, optionally giving the names of the particles. Then, the `generate` method can be used to produce the desired sample.
a list, optionally giving the names of the particles. Then, the ``generate`` method can be used to produce the desired sample.
For example, to generate :math:`B^0\to K\pi`, we would do:

.. code-block:: python
Expand Down
2 changes: 1 addition & 1 deletion docs/GenMultiDecay_Tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -417,4 +417,4 @@
},
"nbformat": 4,
"nbformat_minor": 1
}
}
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ packages = find:
setup_requires =
setuptools_scm
install_requires =
tensorflow>=2.5,<2.8 # tensorflow.experimental.numpy
tensorflow_probability>=0.11
tensorflow>=2.6,<2.8 # tensorflow.experimental.numpy
tensorflow_probability>=0.11,<0.14
keras <2.7 # temp fix, not matching version with TF
python_requires = >=3.7
include_package_data = True
Expand Down

0 comments on commit 8138971

Please sign in to comment.