import pprint

class ParameterKey[source]

ParameterKey(label:Hashable)

ParameterKey(label: Hashable)

class TeamParameterKey[source]

TeamParameterKey(label:Hashable) :: ParameterKey

Parent class of OffenceParameterKey and DefenceParameterKey.

Can be used to extract team offence/defence parameters with isinstance.

class OffenceParameterKey[source]

OffenceParameterKey(label:Hashable) :: TeamParameterKey

Team offence parameter key

class DefenceParameterKey[source]

DefenceParameterKey(label:Hashable) :: TeamParameterKey

Team Defence parameter key

parameters = [
    RHO_KEY,
    HFA_KEY,
    AVG_KEY,
    OffenceParameterKey('Arsenal'),
    OffenceParameterKey('Chelsea'),
    DefenceParameterKey('Arsenal'),
    DefenceParameterKey('Chelsea'),
]

pprint.pprint([p for p in parameters if isinstance(p, TeamParameterKey)])
[OffenceParameterKey(label='Arsenal'),
 OffenceParameterKey(label='Chelsea'),
 DefenceParameterKey(label='Arsenal'),
 DefenceParameterKey(label='Chelsea')]