Skip to content

Commit

Permalink
Merge pull request #846 from CoffeaTeam/tidy-old-code
Browse files Browse the repository at this point in the history
chore: remove references to old awkward1 classes
  • Loading branch information
lgray authored Jun 26, 2023
2 parents cc4c391 + a6dd1fa commit 1ce3fbf
Showing 1 changed file with 1 addition and 1 deletion.
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 1ce3fbf

Please sign in to comment.