radiant-mlhub-landcovernet example failing
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- jupyter-notebook, python
- Lĩnh vực
- data, machine-learning
Hướng nghiên cứu
Mở tutorials/radiant-mlhub-landcovernet.ipynb và chạy lại ô thiết lập collection_id thành ref_landcovernet_v1_labels và gọi client.get_collection. Kiểm tra xem collection đó còn tồn tại hay không và liệu ví dụ có xác định một lựa chọn thay thế khả dụng hay không. Hoàn tất khi việc tra cứu collection thành công và notebook không còn lỗi ở bước này.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The landcovernet example at https://github.com/microsoft/PlanetaryComputerExamples/blob/main/tutorials/radiant-mlhub-landcovernet.ipynb is currently failing for me.
>>> collection_id = "ref_landcovernet_v1_labels"
>>> collection = client.get_collection(collection_id)
---------------------------------------------------------------------------
APIError Traceback (most recent call last)
File /srv/conda/envs/notebook/lib/python3.8/site-packages/pystac_client/stac_api_io.py:136, in StacApiIO.request(self, href, method, headers, parameters)
135 if resp.status_code != 200:
--> 136 raise APIError(resp.text)
137 return resp.content.decode("utf-8")
APIError: {"detail":"Collection ref_landcovernet_v1_labels does not exist."}
During handling of the above exception, another exception occurred:
APIError Traceback (most recent call last)
Input In [4], in <cell line: 3>()
1 collection_id = "ref_landcovernet_v1_labels"
----> 3 collection = client.get_collection(collection_id)
4 collection_sci_ext = ScientificExtension.ext(collection)
5 print(f"Description: {collection.description}")
File /srv/conda/envs/notebook/lib/python3.8/site-packages/pystac_client/client.py:92, in Client.get_collection(self, collection_id)
90 if self._stac_io.conforms_to(ConformanceClasses.COLLECTIONS):
91 url = f"{self.get_self_href()}/collections/{collection_id}"
---> 92 collection = CollectionClient.from_dict(self._stac_io.read_json(url), root=self)
93 return collection
94 else:
File /srv/conda/envs/notebook/lib/python3.8/site-packages/pystac/stac_io.py:197, in StacIO.read_json(self, source, *args, **kwargs)
178 def read_json(
179 self, source: Union[str, "Link_Type"], *args: Any, **kwargs: Any
180 ) -> Dict[str, Any]:
181 """Read a dict from the given source.
182
183 See :func:`StacIO.read_text <pystac.StacIO.read_text>` for usage of
(...)
195 given source.
196 """
--> 197 txt = self.read_text(source, *args, **kwargs)
198 return self.json_loads(txt)
File /srv/conda/envs/notebook/lib/python3.8/site-packages/pystac_client/stac_api_io.py:77, in StacApiIO.read_text(self, source, parameters, *args, **kwargs)
75 href = source
76 if bool(urlparse(href).scheme):
---> 77 return self.request(href, *args, parameters=parameters, **kwargs)
78 else:
79 with open(href) as f:
File /srv/conda/envs/notebook/lib/python3.8/site-packages/pystac_client/stac_api_io.py:139, in StacApiIO.request(self, href, method, headers, parameters)
137 return resp.content.decode("utf-8")
138 except Exception as err:
--> 139 raise APIError(str(err))
APIError: {"detail":"Collection ref_landcovernet_v1_labels does not exist."}
cc @KennSmithDS. Do you know if that collection ID was deliberately removed? Is there a good alternative?
- Ngôn ngữ chính
- Jupyter Notebook
- Star
- 455
- Fork
- 225
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/PlanetaryComputerExamples
-
which version of IMERG? Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
microsoft/PlanetaryComputerExamples#307 · 4 bình luận ·
-
Sentinel-5 P data usage Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
microsoft/PlanetaryComputerExamples#303 · 5 bình luận ·
Tất cả issue của microsoft/PlanetaryComputerExamples
Issue tương tự
-
bug needs triage p2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
GoogleCloudPlatform/DataflowTemplates#4273 · 1 bình luận ·
-
correction metadata
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
acl-org/acl-anthology#10025 · 1 bình luận ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
indexing issue in correct_cte Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Schema-level dtype cannot be serialized: to_yaml raises RepresenterError, to_json raises TypeError Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
unionai-oss/pandera#2511 ·