Skip to content

Commit

Permalink
Update episodes/05-access-data.md
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Avery <[email protected]>
  • Loading branch information
fnattino and rbavery authored Jan 14, 2025
1 parent 8b2f85b commit 995308b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion episodes/05-access-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ To load the saved search results as a `ItemCollection` we can use [`pystac.ItemC

```python
import pystac
items_loaded = pystac.ItemCollection.from_file("../data/stac_json/rhodes_sentinel-2.json")
items_loaded = pystac.ItemCollection.from_file("rhodes_sentinel-2.json")
```

The loaded item collection (`items_loaded`) is equivalent to the one returned earlier by `search.item_collection()` (`items`). You can thus perform the same actions on it: you can check the number of items (`len(items_loaded)`), you can loop over items (`for item in items_loaded: ...`), and you can access individual elements using their index (`items_loaded[0]`).
Expand Down

0 comments on commit 995308b

Please sign in to comment.