Giter Club home page Giter Club logo

ecobalyse's Issues

[API] Error in the calculation of the sum of materials

Due to a javascript issue, in some cases, the API materials sum check does not work.

Using

materials[]=coton;0.7&materials[]=acrylique-r;0.2&materials[]=jute;0.1

the API returns this error

{"errors":{"materials":"La somme des parts de matières doit être égale à 1 (ici : 0.9999999999999999)"}}

In this case, we have 0.7 + 0.2 + 0.1 and it should not give error.

Ennoblissement : question (doute) sur le calcul (pr gwp)

Chère équipe Ecobalyse,

je comparais les calculs de notre propre outil et j'ai du mal à retomber sur mes pates quant au calcul de l'ennoblissement dans Ecobalyse. Je m'explique avec une exemple concret (voir screenshot, tshirt 100% coton, 0,5kg, tout en Chine!)
image

L'énergie pour la chaleur est 21,54 MJ, pour l'électricité 1,43 kWh. En faisant le calcul à la main (pr le gwp spécifiquement), j'obtiens 21,54 * 0,1068 (

) + 1,43 * 1.057 (https://github.com/MTES-MCT/ecobalyse/blob/662c8e6e7aecb2acb85fa232d99873374bec0c3a/data/textile/ior_correction/processes_pre_correction.json#L10C14-L10C21) ~= 3,81 kg co2e => dans le screenshot, vous pouvez voir que j'obtiens 6,6 kg co2e.

Soit je me goure complètement, soit il me manque une information. J'aurais aimé aider à regarder en détail dans le code (et j'ai essayé) mais je ne suis pas "fluent" sur Elm malheureusement :(

A bientot,

Antoine

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.