architecture-building-systems / CityEnergyAnalyst

The City Energy Analyst (CEA)
https://www.cityenergyanalyst.com/
MIT License
194 stars 61 forks source link

archetypes-mapper KeyError: '1' #3508

Closed KFSchlager closed 6 months ago

KFSchlager commented 6 months ago

Describe the bug When executing the archetypes-mapper an Error encounters. A copy from the Job Output:


_Traceback (most recent call last): File "C:\Program Files (x86)\CityEnergyAnalyst\dependencies\micromamba\envs\cea\lib\site-packages\pandas\core\indexes\base.py", line 3653, in get_loc return self._engine.get_loc(casted_key) File "pandas_libs\index.pyx", line 147, in pandas._libs.index.IndexEngine.get_loc File "pandas_libs\index.pyx", line 155, in pandas._libs.index.IndexEngine.get_loc File "pandas_libs\index_class_helper.pxi", line 70, in pandas._libs.index.Int64Engine._checktype KeyError: '1'


After returning to the Input Editor the supply-systems is still empty (the default CH Archetypes were used)

To Reproduce Steps to reproduce the behavior:

  1. Data management
  2. Archetypes mapper
  3. Run Script
  4. See error in Current Jobs

Expected behaviour No error and assigned supply-systems

Screenshots If applicable, add screenshots to help explain your problem. grafik

Hardware:

ShiZhongming commented 6 months ago

Hi @KFSchlager I tried to replicate your error but I could not. Possible you share your Inputs folder with us? Then, we can take a look.

KFSchlager commented 6 months ago

Hi @ShiZhongming, yes, of course, where/how can I share it with you?

ShiZhongming commented 6 months ago

zip your files and you can attach it when you post comment. @KFSchlager

ShiZhongming commented 6 months ago

In case anyone was looking for an answer to such key error "1" or "2"...

As we suspected, it is because of the building names. Please make sure the building names start with letters. To change building names for existing scenarios, you can use the Rename Building Feature under Tab utilities.