Coder Social home page Coder Social logo

Comments (8)

deviozc avatar deviozc commented on August 14, 2024 2

Yeah, interactive gantt chart would work.
I'd start with using gantt chart to represent the intervention timeline first and see if we can make it interactive by this Friday.

from covasim.

cliffckerr avatar cliffckerr commented on August 14, 2024 1

This is an example of how to create an intervention changing beta at days 25 and 35:

import covasim as cv
pars = {
    'n_infected': 1000,
    'interventions': [cv.interventions.change_beta([25, 35], [0.5, 0.0])],
    }
sim = cv.Sim(pars=pars)
sim.run()
sim.plot()

@deviozc would you be able to start thinking about how to get these controls into the UI?

from covasim.

lgeorge-idm avatar lgeorge-idm commented on August 14, 2024 1

@ckerr-IDM , fortunately the internet is awash with off the shelf gantt chart plugins, frameworks, etc. (e.g., https://github.com/neuronetio/gantt-elastic) We may be able to repurpose that for our needs. @sayers24 and @deviozc , thoughts?

from covasim.

cliffckerr avatar cliffckerr commented on August 14, 2024

@deviozc Sorry for some reason I can't assign you, but I hereby assign you to this too :)

from covasim.

deviozc avatar deviozc commented on August 14, 2024

@sayers24 has some ideas from #71
For MVP, does intervention UI need to take into account for different community and demography? eg. Social distancing applying to all communities but household, age-base social distancing, mask wearing only in workplace.

from covasim.

cliffckerr avatar cliffckerr commented on August 14, 2024

@deviozc This should be in there, but not necessarily exposed to the user. Geography not part of the MVP

from covasim.

lgeorge-idm avatar lgeorge-idm commented on August 14, 2024

Launching from the scenario scheduler from #71 seems to be the right paradigm from which to start the user into developing their intervention campaign as opposed to picking the country.
All interventions have to be scheduled. It seems natural you start there and then add the other layers of configuration to that intervention. And then finish by inputting any additional global or "advanced" parameters.
It's also pretty natural in the sense that calendaring is very familiar when you have a drag, drop, and resize mechanism in place.

from covasim.

ckerr-IDM avatar ckerr-IDM commented on August 14, 2024

@lgeorge-idm definitely not MVP, but if we could have your Gantt chart thing and the user could drag either end of the intervention to change the date -- 🀩

from covasim.

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.