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

Pinned CMIP7 datasets fail to resolve when a newer version is published

Đang mở
#996 0 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
data-engineering

Hướng nghiên cứu

Start by reading CMIP7Request._pinned_facets and _select_pinned, then trace combine_results in intake_esgf/base.py and version selection in intake_esgf/catalog.py. Reproduce the case where A is pinned at v1 while A@v2 also exists; confirm whether the catalog drops A@v1. The issue says #995 leaves this behavior in place, so check that context before proposing a fix.

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

Mô tả

A pinned CMIP7 request can fail to resolve a pinned dataset when a newer version of that dataset is also published.

CMIP7Request._pinned_facets asks ESGF for every pinned base_id at every pinned version in one search, with latest=[True, False]. If dataset A is pinned at v1 and dataset B is pinned at v2, and A also has a v2, the search returns both A@v1 and A@v2. ESGF returns both versions correctly.

intake-esgf then drops A@v1:

  • combine_results (intake_esgf/base.py) groups rows by master_id_facets(), which for CMIP7 is every facet except version. This merges both versions into one row.
  • ESGFCatalog.search (intake_esgf/catalog.py) keeps only the ids carrying the highest version in each row. This is there to reconcile indices that disagree on the latest version, and there is no option to turn it off.

_select_pinned then raises DatasetResolutionError saying ESGF "no longer resolves" A, which is misleading. Checked against intake-esgf 2026.9.28.

Possible fixes:

  • Run one search per pinned version in climate-ref. This needs fetch_datasets to run several searches and concatenate the results. Two versions of the same dataset would still collide on intake-esgf's key, which also excludes version, but a test case catalog only records one version of each dataset.
  • Add an option upstream in intake-esgf to keep every version a search returns.

This is rare in practice, so #995 leaves it as is with a comment in _select_pinned.

Ngôn ngữ chính
Python
Star
27
Fork
14
Merge trung bình
1 ngày 6 giờ
Pull request đã merge (30 ngày)
62

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

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 Climate-REF/climate-ref

Tất cả issue của Climate-REF/climate-ref

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.