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

Remove mention of STAC_URL in Client.open docstring #317

Merged
merged 2 commits into from
Sep 17, 2022
Merged

Remove mention of STAC_URL in Client.open docstring #317

merged 2 commits into from
Sep 17, 2022

Conversation

weiji14
Copy link
Contributor

@weiji14 weiji14 commented Sep 16, 2022

Related Issue(s):

Description:

Quick patch that updates the docstring of pystac_client.Client.open to remove mentioning the STAC_URL environment variable, since it doesn't work anymore.

Actually got a bit confused because the v0.2.0 changelog at https://github.com/stac-utils/pystac-client/blob/v0.5.0/CHANGELOG.md#v020---2021-08-04 says the fallback STAC_URL was added in #48 (5 May 2021), but the option was removed afterwards in #81 (2 Aug 2021) 😅

Discovered this when writing unit tests at weiji14/zen3geo#59 and was wondering why I kept getting AttributeError: 'NoneType' object has no attribute 'lower' when using url=None with the STAC_URL environment variable set. This was using pystac-client v0.4.0, but I think it's an issue from v0.2.0 to v0.5.0.

PR Checklist:

  • Code is formatted
  • Tests pass
  • Changes are added to the CHANGELOG

Documentation was not updated after #81 to indicate that the `STAC_URL` environment variable doesn't work anymore. An argument to the `url` parameter is now required.
@weiji14 weiji14 changed the title Remove mention of STAC_URL in Client.open Remove mention of STAC_URL in Client.open docstring Sep 16, 2022
@TomAugspurger TomAugspurger merged commit 9463f94 into stac-utils:main Sep 17, 2022
@TomAugspurger
Copy link
Collaborator

Thanks!

@weiji14 weiji14 deleted the remove-STAC_URL-env-var branch September 17, 2022 11:55
@gadomski gadomski added this to the 0.5.2 milestone Dec 12, 2022
@gadomski gadomski modified the milestones: 0.5.2, 0.6.0 Jan 27, 2023
weiji14 added a commit to weiji14/zen3geo that referenced this pull request May 17, 2023
The STAC_URL environment variable never actually worked, see stac-utils/pystac-client#317. Also updated some links on the walkthrough to point to torchdata 0.6.1.
weiji14 added a commit to weiji14/zen3geo that referenced this pull request May 17, 2023
)

* 🥚 Allow using XpySTACAssetReader without xpystac when engine!=stac

A little hidden feature to use `read_from_xpystac` with other engines (e.g. `netcdf4`, `h5netcdf`) without having to install `xpystac`! Added a unit test using `engine="rasterio"` which is technically deprecated, but works without having to install extra dependencies.

* ✏️ Remove mention of the STAC_URL environment variable

The STAC_URL environment variable never actually worked, see stac-utils/pystac-client#317. Also updated some links on the walkthrough to point to torchdata 0.6.1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants