IndEcol / RECC-ODYM

The RECC model
MIT License
21 stars 10 forks source link

AttributeError in line 2834 #35

Closed CBreton026 closed 2 years ago

CBreton026 commented 2 years ago

EDIT: Apparently, the error was only on my local copy -- sorry for creating this issue without looking further into it. I realized as soon as I tried to make the pull request.


Hi Stefan,

This is a minor issue, but I received an attribute error in line 2834. I think the attribute 'values' should be 'value'; I'm mostly new to GitHub, I'll try to link a pull request and submit the fix.

  File "~\Local\Temp/ipykernel_24996/2352939797.py", line 1, in <module>
    runfile('~/buildingStockModel/ODYM/RECC-master/ODYM_RECC_Main_backup.py', wdir='~/buildingStockModel/ODYM/RECC-master')

  File "~\py39\lib\site-packages\debugpy\_vendored\pydevd\_pydev_bundle\pydev_umd.py", line 167, in runfile
    execfile(filename, namespace)

  File "~\py39\lib\site-packages\debugpy\_vendored\pydevd\_pydev_imps\_pydev_execfile.py", line 25, in execfile
    exec(compile(contents + "\n", file, 'exec'), glob, loc)

  File "~/buildingStockModel/ODYM/RECC-master/ODYM_RECC_Main_backup.py", line 2834, in <module>
    pav_Sheet.cell(2,3).values = '2015 per capita stock values, total (all segments and drive technologies), by model region. Unit: 1 (veh. per person).'

AttributeError: 'Cell' object has no attribute 'values'
stefanpauliuk commented 2 years ago

Exactly, this was already fixed by Fabio Carrer @NTNU Trondheim, Norway :)