Git Product home page Git Product logo

floods-backend's People

Contributors

corneauf avatar dependabot[bot] avatar jsnrdl avatar marpaia avatar notoraptor avatar vahe987 avatar vict0rsch avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

floods-backend's Issues

Resolve test failures

CirceCI is failing for a few reasons, let's keep this passing so we don't miss any real errors that make it through.

Change CCAI to VICC

@jsnrdl can you change all references to CCAI to VICC? (and Climate Change AI to Visualizing the Impacts of Climate Change)

We'll change the org too

Return null as the value when there is no climate metadata for a given address

Right now, an address that has no climate metadata available returns something like:

  "metadata": {
    "monthly_average_precipitation": {
      "title": "Monthly Average Precipitation in 2050", 
      "value": NaN
    }, 
    "relative_change_precipitation": {
      "title": "Relative Change in Precipitation by 2050", 
      "value": 0.0
    }
  }, 

But this is not valid JSON. In cases like this, let's return "value": null instead.

Image processing error: Error: Request failed with status code 500

if the address doesn't have a street view, for example "38 Galshoyan Street, Yerevan, Armenia"
or it is a wrong address, we are getting an error
Image processing error: Error: Request failed with status code 500

also, if previous request was successful, it keeps the title and street view of the previous one. Should be empty in case of the error, to do not confuse the user
image

Log metrics regarding the addresses that are submitted and the resultant flooded images

In production, it will be useful to understand the regions where people are interested in climate change as well as the efficacy of our models. For this reason, we need to log the requested address, the raw image we get from streetview, and the flooded image.

Let's also make sure that we have our legal and privacy ducks in a row before implementing this. A set of terms from a website like Montreal Data License might be useful for this.

Image processing error / nothing to show

For some places, everything works just fine:
working

Now, if I query 6666 rue saint Urbain in Montreal, the following error is returned:
not_working

However, if I query 6666 rue saint Urbain and it is the FIRST address I am querying when logging into th website, the error is not returned, but no image is shown:
working_partial

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.