GithubHelp home page GithubHelp logo

kausaltech / kausal-paths Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 4.0 3.18 MB

Kausal Paths to predict how the emissions of cities develop

License: GNU Affero General Public License v3.0

Python 97.52% Dockerfile 0.24% Shell 0.58% HTML 0.81% CSS 0.16% Jupyter Notebook 0.27% JavaScript 0.42%

kausal-paths's People

Contributors

bbliem avatar jtuomist avatar juyrjola avatar lilia1891 avatar mechenich avatar philippestolz avatar terotik avatar tituomin avatar woodwoerk avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

philippestolz

kausal-paths's Issues

Allow users to import and export scenarios

We should allow users to import and export the custom scenarios they have made. Let's do this by generating a (JSON) file in the backend that we download to the user's computer. A couple of new mutations will be needed:

  • ExportScenario takes as its argument a name for the custom scenario. It generates the JSON of the customized parameters and returns that as the data field along with filename that the UI uses when saving the file.
  • ImportScenario is given a string that the UI loads from the user-uploaded scenario file. It will create a new field (imported_scenario?) in request.session that will serve as the fourth available scenario in the scenarios endpoint. When a new scenario is imported, imported_scenario will be replaced by the new contents, so the user cannot have more than one imported scenario available to her.

Add category information on Action

Need: Emissions segments have each a theme color. Either automatically determine a corresponding color for an action (segment that the action targets) or let the user choose a theme color for an action too.

Could be augmented to categorisation and other structured meta data for actions.

Make hard coded base values editable

Add admin interface for the admin user to change values of hard coded node input time series

Divide this issue as needed

  • add graphql mutations
  • handle authentication
  • implement js editing component in ui (Watch org editor style)

Implement Page models similar to KW

There is already a need to change the text "Actions" that we have in the public UI. It might be simplest to replicate what we have in KW and implement an ActionListPage model (including the show_in_* booleans).

We will also need to have an InstanceRootPage and instance-specific wagtail.core.Site model instances (ugh, "instance" is beginning to be too overloaded already โ€“ we still might be able to change the word at this point).

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.