You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be very useful to have this additional *_like operator to create a column of nulled data.
This comes up in a physics use case at LHC (at cleaner experimental environments this doesn't hold) where a Jet is an object that has charge but due to QCD screening and reconstruction effects that charge is difficult or impossible to determine accurately. This means that while Jets are what physicists typically call "candidates", which are four-momenta with an assigned charge, the charge can be best described as None since any associated number is confusing or misleading.
So, to successfully reconcile types with physics concepts being able to generate None columns in the same shape as pt or other Jet quantities would be really useful, so that we can assign the None column as the candidate's charge.
@jpivarski created a few-line example of a mockup of expected behavior using awkward:
@lgrayak.enforce_type can do this. The only quirk is that we can't easily build the type object from a string with unknown. I think that's an oversight @jpivarski? :)
Even though the above could be one line, it would be useful to have it wrapped up as a function because ak.none_like(some_array) is a lot more obvious about what it does.
Description of new feature
It would be very useful to have this additional
*_like
operator to create a column of nulled data.This comes up in a physics use case at LHC (at cleaner experimental environments this doesn't hold) where a Jet is an object that has charge but due to QCD screening and reconstruction effects that charge is difficult or impossible to determine accurately. This means that while Jets are what physicists typically call "candidates", which are four-momenta with an assigned charge, the charge can be best described as
None
since any associated number is confusing or misleading.So, to successfully reconcile types with physics concepts being able to generate
None
columns in the same shape aspt
or other Jet quantities would be really useful, so that we can assign theNone
column as the candidate's charge.@jpivarski created a few-line example of a mockup of expected behavior using awkward:
The text was updated successfully, but these errors were encountered: