radiant-mlhub-landcovernet example failing
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- jupyter-notebook, python
- 領域
- data, machine-learning
調査の方向性
tutorials/radiant-mlhub-landcovernet.ipynb を開き、collection_id を ref_landcovernet_v1_labels に設定して client.get_collection を呼び出すセルを再実行します。その collection がまだ存在するか、また例が利用可能な代替を示しているかを確認します。collection の検索が成功し、この手順で notebook が失敗しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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?
- 主要言語
- Jupyter Notebook
- スター
- 455
- フォーク
- 225
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/PlanetaryComputerExamples のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
microsoft/PlanetaryComputerExamples#307 · コメント 4 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
microsoft/PlanetaryComputerExamples#303 · コメント 5 件 ·
microsoft/PlanetaryComputerExamples の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
check:passed logos:remove
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
bug needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
bug needs triage p2
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
GoogleCloudPlatform/DataflowTemplates#4273 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100