`Modflow6Simulation.from_file()` or even Package instantiation could always eagerly materialize all non-spatial data

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

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

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

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
20/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
backend, performance

Hướng nghiên cứu

Bắt đầu từ Modflow6Simulation.from_file() và việc khởi tạo package, sau đó tái hiện lỗi .item() trên scalar được dask hỗ trợ liên quan đến #1686. Xem xét cách các biến không gian và nội dung của các package DIS hiện được tải, đồng thời so sánh hành vi của xarray zarr với netCDF. Để hoàn tất, cần xác định rõ phạm vi materialization và xác thực hành vi cũng như hiệu năng thu được.

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

Mô tả

This has some relation to #1686

My finding there is that .item() doesn't work on dask-backed scalar values. This looks like an issue/inconsistency with the xarray zarr backend (in comparison with netCDF). The workaround is to simply force all non-spatial variables into memory.

However, this workaround might have general benefits: forcing a compute on these small (non-spatial) variables will decrease IO overhead in general, such that it may be worthwhile to always call a .load() or .compute(). Alternatively, it has no downsides (apart from the single loop over the dataset variables at instantiation).

An argument could be made that e.g. the contents of the DIS package should always be loaded into RAM as well.

We could even take this further: guarantee that some arrays are materialized (i.e. numpy backed instead of dask backed) at package instantiation. The resulting memory pressure is small, but it might increase performance predictability.

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

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.