Skip to content

Commit

Permalink
Merge pull request #948 from CoffeaTeam/fix_coerce_types_jetmet
Browse files Browse the repository at this point in the history
fix: adjust dtypes for constants
  • Loading branch information
lgray authored Nov 30, 2023
2 parents be3d18a + cfa5bdb commit 4080344
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/coffea/jetmet_tools/CorrectedJetsFactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import numpy

_stack_parts = ["jec", "junc", "jer", "jersf"]
_MIN_JET_ENERGY = numpy.array(1e-2, dtype=numpy.float32)
_ONE_F32 = numpy.array(1.0, dtype=numpy.float32)
_ZERO_F32 = numpy.array(0.0, dtype=numpy.float32)
_MIN_JET_ENERGY = numpy.float32(1e-2)
_ONE_F32 = numpy.float32(1.0)
_ZERO_F32 = numpy.float32(0.0)
_JERSF_FORM = {
"class": "NumpyArray",
"inner_shape": [3],
Expand Down

0 comments on commit 4080344

Please sign in to comment.