iris-hep / func_adl

Construct hierarchical data queries using SQL-like concepts in python
MIT License
8 stars 4 forks source link

Parameters for parameterized functions should allow types #137

Closed gordonwatts closed 4 months ago

gordonwatts commented 4 months ago

Currently a parameterize function can't deal with a type:

            "jet_EnergyPerSampling":
                ei.jet.Select(  # type: ignore
                    lambda j: j.getAttribute[cpp_vfloat]("EnergyPerSampling")
                ),

On the other hand, this works fine:

            "jet_EnergyPerSampling":
                ei.jet.Select(  # type: ignore
                    lambda j: j.getAttribute["cpp_vfloat"]("EnergyPerSampling")
                ),

This was a regression - we weren't testing for this and another bug fix cut this off!

This was found as part of the IDAP 200 Gbps test, and is tracked there in this issue.