mlco2/codecarbon

Incorrect argument in codecarbone causing error in get_project_data

開放

#410 建立於 2023年5月25日

 (5 則留言) (0 個反應) (2 位負責人)Python (306 個分叉)auto 404
buggood first issue

倉庫指標

星標
 (1,885 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

  • CodeCarbon version: "^2.2.1"
  • Python version: 3.10
  • Operating System: Windows 11

Description

I encountered an error while working with the codecarbone library. The issue arises in the file "data.py" at line 20, specifically in the get_project_data function. The original code uses the argument "rows" in the to_dict method, which results in a runtime error. To resolve the issue, I replaced "rows" with "records".

File "C:\Users\my.name\AppData\Local\pypoetry\Cache\virtualenvs\analyser-f8dLQ06Q-py3.10\lib\site-packages\codecarbon\viz\data.py", line 20, in get_project_data project_data = project_df.to_dict("rows")

What I Did

poetry run carbonboard --filepath="./emissions.csv" --port=3333

貢獻者指南