Skip to content

Commit

Permalink
Merge branch 'master' into cutflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lgray authored Jun 27, 2023
2 parents bdc5251 + bacf1c1 commit 7c92981
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ For more details, see the `Installing coffea <https://coffeateam.github.io/coffe
Strict dependencies
===================

- `Python <http://docs.python-guide.org/en/latest/starting/installation/>`__ (3.6+)
- `Python <http://docs.python-guide.org/en/latest/starting/installation/>`__ (3.8+)

The following are installed automatically when you install coffea with pip:

- `numpy <https://scipy.org/install.html>`__ (1.15+);
- `uproot <https://github.com/scikit-hep/uproot4>`__ for interacting with ROOT files and handling their data transparently;
- `awkward-array <https://github.com/scikit-hep/awkward-1.0>`__ to manipulate complex-structured columnar data, such as jagged arrays;
- `numpy <https://scipy.org/install.html>`__ (1.22+);
- `uproot <https://github.com/scikit-hep/uproot5>`__ for interacting with ROOT files and handling their data transparently;
- `awkward-array <https://github.com/scikit-hep/awkward>`__ to manipulate complex-structured columnar data, such as jagged arrays;
- `numba <https://numba.pydata.org/>`__ just-in-time compilation of python functions;
- `scipy <https://scipy.org/scipylib/index.html>`__ for many statistical functions;
- `matplotlib <https://matplotlib.org/>`__ as a plotting backend;
Expand Down
2 changes: 1 addition & 1 deletion src/coffea/jetmet_tools/CorrectedJetsFactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def rand_gauss(item):

def getfunction(layout, depth, **kwargs):
if isinstance(layout, awkward.contents.NumpyArray) or not isinstance(
layout, (awkward.contents.Content, awkward.partition.PartitionedArray)
layout, (awkward.contents.Content,)
):
return awkward.contents.NumpyArray(
randomstate.normal(size=len(layout)).astype(numpy.float32)
Expand Down

0 comments on commit 7c92981

Please sign in to comment.