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
I would like to recognize the "From Counter" play pattern in our StatsBomb deserializer and thus add CounterAttackQualifier s to events with this play pattern.
I'm not sure what would be an elegant way to implement this.
I could create a function _get_counter_attack_qualifiers(event_dict: Dict) -> List[CounterAttackQualifier] which recognizes the "From Counter" play pattern. And then add this function in all the _create_events() methods of the different event type classes. But it feels a bit repetitive to add it to almost all of these event classes - @probberechts thoughts?
The text was updated successfully, but these errors were encountered:
I would like to recognize the "From Counter" play pattern in our StatsBomb deserializer and thus add
CounterAttackQualifier
s to events with this play pattern.I'm not sure what would be an elegant way to implement this.
I could create a function
_get_counter_attack_qualifiers(event_dict: Dict) -> List[CounterAttackQualifier]
which recognizes the "From Counter" play pattern. And then add this function in all the_create_events()
methods of the different event type classes. But it feels a bit repetitive to add it to almost all of these event classes - @probberechts thoughts?The text was updated successfully, but these errors were encountered: