Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Bug] - MetaSwapModel dump loses PrecipitationMapping.meteo

Đang mở
#1,939 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

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

Hướng nghiên cứu

Start by reproducing the loss: build a MetaSwapModel, call its dump() method, reload it with from_file(), then inspect the reloaded PrecipitationMapping and the prec_mapping.nc file it wrote, which the report says is empty. Compare how the meteo reference is written and read back in the serialization path. Done means the reloaded PrecipitationMapping has its meteo attribute and the dump-and-reload round trip works without an AttributeError.

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

Mô tả

bug Deltares

When dumping and reloading a MetaSwapModel, the resulting PrecipitationMapping object has no meteo attribute:

AttributeError: 'PrecipitationMapping' object has no attribute 'meteo'

This occurs with MetaSwapModel.dump() followed by MetaSwapModel.from_file(). The original model works correctly before dumping.

The prec_mapping.nc file is empty, so the meteorological grid reference appears not to be preserved during serialization. The reloaded model should restore the meteo attribut

Ngôn ngữ chính
Python
Star
41
Fork
10
Merge trung bình
2 ngày 23 giờ
Pull request đã merge (30 ngày)
15

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Deltares/imod-python

Tất cả issue của Deltares/imod-python

Issue tương tự

Thêm issue về Python

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.