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
@pytest.mark.skipif(notrun_long_running_tests, reason="Skipping long running test")deftest_global_enum_return_with_enum():
"""Run an actual return thing that will generate some output that we can examine on a test sample. """# Define the num class for future referenceclassJetConstitScale(Enum):
UncalibratedJetConstituent=0CalibratedJetConstituent=1# Declare the enum classctyp.define_enum("xAOD.Jet", "Color", ["Red", "Blue"])
# Define the `getConstituentsSignalState` method# fmt: off# Add test compare to JetConstitScale.CalibraatedJetConstituent.Value in# a Where clause as a test of translating a global enumtraining_df=as_pandas(
f_single.SelectMany(lambdae: e.Jets("AntiKt4EMTopoJets"))
.Select(lambdaj: j.getConstituentsSignalState())
)
# fmt: onassertlen(training_df) >0assertall(training_df.col1==JetConstitScale.CalibratedJetConstituent.value)
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: