EnergySystemsModellingLab / EnergySystemsModellingLab/MUSE_OS

Emission costs output doesn't work

Đang mở
#421 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Python
Star
29
Fork
12
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I get this error when I use the `emission_costs` output:

```
File "C:\Users\tbland\Documents\Code\MUSE_OS\src\muse\outputs\mca.py", line 871, in sector_emission_costs
i = (np.where(envs))[0][0]
~~~~~~~~~~~~~~~~~~~^^^
IndexError: index 0 is out of bounds for axis 0 with size 0
```

This happens both with MUSE 1.1.0 and the dev version

Relates to the `sector_emission_costs` function in `outputs/mca.py`

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Start in src/muse/outputs/mca.py at sector_emission_costs, especially the lookup reported at line 871. Reproduce the emission_costs output with MUSE 1.1.0 or the development version, then verify that the output no longer raises the reported IndexError and produces the expected emission-costs result.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
data
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
38/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.