Boavizta / boaviztapi

🛠 Giving access to BOAVIZTA reference data and methodologies trough a RESTful API
GNU Affero General Public License v3.0
66 stars 23 forks source link

Duplicate configuration.gpu.memory in aws.csv #226

Closed JacobValdemar closed 9 months ago

JacobValdemar commented 9 months ago

Bug description

In aws.csv the data contains two columns with the name configuration.gpu.memory. Looking at the data, maybe the first instance should have been named to configuration.gpu.name?

https://github.com/Boavizta/boaviztapi/blob/5b6ef428cbf11e297c5c11554438d5d1b8667b19/boaviztapi/data/devices/cloud/aws.csv?plain=1#L1

To Reproduce

Expected behavior

JSON OUTPUT

Additional context

da-ekchajzer commented 9 months ago

Thanks for this bug report. We fixed it in the dev version: https://github.com/Boavizta/boaviztapi/blob/dev/boaviztapi/data/archetypes/cloud/aws.csv

The dev version should be released soon. I recommend you to use it as of today.

GPU data is not used because we don't yet have a method to take their impacts into account. Dedicated issue : https://github.com/Boavizta/boaviztapi/issues/65

JacobValdemar commented 9 months ago

@da-ekchajzer OMG I have been using main for so long and wondered why so much seemed outdated. I am happy that you shared with me that you have a dev branch. Will use that going forward 🚀

da-ekchajzer commented 9 months ago

Dev doc : dev.doc.api.boavizta.org/

Since we made some breaking changes, here is a draft of the pre-release :

v1.0.0

New features

Internal changes

Breaking changes

Cloud routers

Before
Now

Duration & allocation

Before
{
  "usage": {
    "hours_use_time": 2,
  }
}
Now
{
  "usage": {
    "use_time_ratio": 0.5,
  }
}

Impacts format

Before
"gwp": {
      "manufacture": 1900,
      "use": 260,
      "unit": "kgCO2eq"
    },

or

"manufacture_impacts": {
        "gwp": {
          "value": 23.8,
          "unit": "kgCO2eq"
        },
        "pe": {
          "value": 353,
          "unit": "MJ"
        },
        "adp": {
          "value": 0.02,
          "unit": "kgSbeq"
        }
      }
}
Now
"impacts": {
   "gwp": {
     "embedded": {
       "value": 6.68,
       "min": 6.68,
       "max": 6.68,
       "warnings": [
         "End of life is not included in the calculation"
       ]
     },
     "use": "not implemented",
     "unit": "kgCO2eq",
     "description": "Total climate change"
   },

Verbose format

Before
"USAGE": {
  ...
  "usage_impacts": {
       ...
  }
  "avg_power": {
    "value": 94.62364134445255,
    "unit": "W",
    "status": "COMPLETED",
    "source": null
  },
...
}
Now
  "CPU-1": {
      "impacts": {
        "gwp": {
          "embedded": {
            "value": 64.7,
            "significant_figures": 3,
            "min": 24.6,
            "max": 149,
            "warnings": [
              "End of life is not included in the calculation"
            ]
          },
          "use": {
            "value": 160,
            "significant_figures": 2,
            "min": 160,
            "max": 160
          },
          "unit": "kgCO2eq",
          "description": "Total climate change"
        }
      },
      "die_size_per_core": {
        "value": 0.47078947368421054,
        "status": "COMPLETED",
        "unit": "mm2",
        "source": "Average for Skylake",
        "min": 0.07,
        "max": 1.02
      }
      ... 
}

Contributors

ToDo

Known future requirements