Giter Club home page Giter Club logo

Comments (5)

ivan-aksamentov avatar ivan-aksamentov commented on June 6, 2024

Hi @tiagoandresvaz, thanks for the report!
This is probably related to our latest "second wave" update. I'll investigate.

from covid19_scenarios.

ivan-aksamentov avatar ivan-aksamentov commented on June 6, 2024

@tiagoandresvaz I cannot confirm the breakage at least not on the client side. For example, if you load "ITA-Lombardia" from the default scenarios, then it shows the "hospitalized" line as expected.

The case counts (including hospitalized) are available only for some regions, where data parsers fetch from sources which have this information. If there's no line on the plot, then it normally means that we simply don't have data for it.

Can you tell if a particular region had hospitalization numbers before but now they have disappeared? In all cases, git history of case-counts directory or of caseCounts.json should manifest the disappearance at some point.

Now, about custom scenarios:

Unfortunately the user experience with custom case counts and custom scenarios is not perfect. Scenarios JSON files (default or custom) don't contain any case counts information (including hospitalizations). But they refer to case counts data by its name. The .population.caseCountsName field in src/assets/data/scenarios.json matches one of the .name fields in src/assets/data/caseCounts.json.

A custom scenario JSON should then refer to either one of the default case counts from src/assets/data/caseCounts.json (the names usually match a country or a region), or to a custom one. Custom case counts file can be "uploaded" beforehand using "or import your own data" link under "Confirmed cases" field. In this case, the .name in this file should be the same as the .population.caseCountsName in your custom scenario.

Let me know if you suspect that there's still a bug, or if you have ideas on how we can improve the experience.

from covid19_scenarios.

tiagoandresvaz avatar tiagoandresvaz commented on June 6, 2024

from covid19_scenarios.

rneher avatar rneher commented on June 6, 2024

Hi @tiagoandresvaz
I think this is a matter of whether those data are available. We don't have hospitalization data for most countries. Italy is exceptionally good at this...

from covid19_scenarios.

tiagoandresvaz avatar tiagoandresvaz commented on June 6, 2024

Hello @rneher
As Italy, here in our region we keep tracking hospital records. As we are not facing any real problem to project scenarios for our state, I will close this bug report. Do you have any recommendations on how to decide when to bundle the first and the second wave in separate files?

from covid19_scenarios.

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.