Giter VIP home page Giter VIP logo

Comments (2)

morganherlocker avatar morganherlocker commented on September 10, 2024

I've been working through the refactor design issues on this ticket and have made some progress. My proposal is the following:

  • add a --days flag that lets mobility-metrics know how many days of data to include before the specified report day (--day)
  • add date range to the top of the report
  • go back to one summary per report with the summary covering whatever the specified date range happens to be (currently there is a 1 day, 7 days, and 30 days summary)
  • For maps, use all data within the query range and modify the format to eliminate the day keys; hours and minutes bins will group data across days

I'm still working on a PR for this, so let me know if there are objections or other ideas for how this should be designed. I will have a testable branch out early next week.

from mobility-metrics.

morganherlocker avatar morganherlocker commented on September 10, 2024

Addressed in v4.0 release. I changed the initial designs here a bit. The --day flag was deprecated in favor of:

  • startDay
    • first day of aggregation window
  • endDay
    • last day of aggregation window
  • reportDay
    • date used for listing the report; created date

Additionally, you can now add a "lost" property to your config specifying a number of days before a vehicle is considered lost in action, so that it will no longer affect availability or onstreet metrics after going silent. The raw data cache will use the lost property to pull data from before your aggregation window, but this data will not factor into metrics, other than detecting deployed vehicles. Defaults to 2 days.

from mobility-metrics.

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.