Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in pystac/docs/tutorials/how-to-create-stac-catalogs.ipynb #771

Closed
davedavemckay opened this issue Mar 25, 2022 · 1 comment · Fixed by #775
Closed

Error in pystac/docs/tutorials/how-to-create-stac-catalogs.ipynb #771

davedavemckay opened this issue Mar 25, 2022 · 1 comment · Fixed by #775
Labels
bug Things which are broken documentation Issues related to PySTAC documentation

Comments

@davedavemckay
Copy link

davedavemckay commented Mar 25, 2022

There is erroneous code in the "How to create STAC catalogs" tutorial.
In the section about adding the eo extension to an Item object, the code throws an AttributeError:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Input In [35], in <cell line: 7>()
      1 eo_item = pystac.Item(id='local-image-eo',
      2                       geometry=footprint,
      3                       bbox=bbox,
      4                       datetime=datetime.utcnow(),
      5                       properties={})
----> 7 eo_item.ext.enable(pystac.Extensions.EO)
      8 eo_item.ext.eo.apply(bands=wv3_bands)

AttributeError: 'Item' object has no attribute 'ext'

The syntax for this in pystac/docs/tutorials/creating-a-landsat-stac.ipynb is different, but I can't see how to rewrite this code in the same way.

Any help much appreciated.

@gadomski gadomski added bug Things which are broken documentation Issues related to PySTAC documentation labels Mar 25, 2022
@gadomski
Copy link
Member

@davedavemckay check out #775 for the new syntax for using extensions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Things which are broken documentation Issues related to PySTAC documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants