Giter Club home page Giter Club logo

Comments (4)

koenvo avatar koenvo commented on August 23, 2024

Good one. I would like to make this configurable. When combining data from different providers it easier to use shirt numbers.

For what use case would you like the provider ids?

OR implement #3 and add a little helper / layer to go from shirt number to provider id. Although in some cases - like statsbomb - it requirements metadata (Lineup) to load the events, even when you don’t need the shirt numbers. That would be an argument to go for the provider ids by default and have a mapper to go to shirt numbers.

I think I’d prefer the last one. Would that work for you?

from kloppy.

bdagnino avatar bdagnino commented on August 23, 2024

By last one you mean "go for the provider ids by default and have a mapper to go to shirt numbers"? I'd agree with that. The game model on #3 could have field to specify which provider are the tracking and event from and that can be used in the mapper to go from ids to shirt number.

from kloppy.

koenvo avatar koenvo commented on August 23, 2024

Brainfart here for the internals: introduce a PlayerIdentifier type which holds IdentifierType (Jersey, Provider[Statsbomb], Provider[Metrica], etc) and the value.

and use player_id instead of jersey_number everywhere.

The PlayerIdentifier eq method should check type and raise exception when types don't match. This will prevent mistakes when trying to match different types of identifiers

from kloppy.

koenvo avatar koenvo commented on August 23, 2024

Fixed in #34

from kloppy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.