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

Merge develop into 0.5 branch for 0.5.4 release #254

Merged
merged 48 commits into from
Jan 15, 2021
Merged

Merge develop into 0.5 branch for 0.5.4 release #254

merged 48 commits into from
Jan 15, 2021

Conversation

lossyrob
Copy link
Member

No description provided.

schwehr and others added 30 commits October 16, 2020 09:37
Change suggested by @lossyrob

For testing, it was easier to add __eq__ to Publication.
Checked type hints with pytype, but mypy does not agree.
Fixes flake8 error:

pystac/extensions/scientific.py:110:12: F402 import 'link' from line 19 shadowed by loop variable
It's just a wrapper around str that isn't critical.
- Use pystac.Thing rather than from pystac import thing
- Drop the regex checks of DOI
- Remove TODO about links that was in the wrong place
layout.py: extra_fiels -> extra_fields
Add support for the scientific extension.
schwehr and others added 18 commits December 1, 2020 10:14
catalog.py: Be more strict with CatalogType in save()
Fix unexpected behaviour of `generate_subcatalogs`
…openended

Collection TemporalExtent can be open ended
Previously only link href types (absolute vs relative) were modified
as part of the `Catalog.save` process based on the catalog types: for
ABSOLUTE_PUBLISHED, all link hrefs were made absolute, etc. The asset
HREFs were not modified, which was counter to the expected result
outlined in stac-utils/stactools#31.

This change causes asset HREFs to also be changed to absolute or
relative based on the catalog type. Note that if the asset HREF cannot
be made relative, e.g. the asset HREF points to an HTTP location and
the item is being stored locally, then the HREF is left unchanged.
Make asset HREFs relative or absolute based on CatalogType during save
Update CHANGELOG; version 0.5.4
Add scientific extension add to CHANGELOG.
@codecov-io
Copy link

codecov-io commented Jan 15, 2021

Codecov Report

Merging #254 (1174848) into 0.5 (3ccb5d0) will increase coverage by 0.27%.
The diff coverage is 97.41%.

Impacted file tree graph

@@            Coverage Diff             @@
##              0.5     #254      +/-   ##
==========================================
+ Coverage   93.73%   94.00%   +0.27%     
==========================================
  Files          30       32       +2     
  Lines        3749     3969     +220     
==========================================
+ Hits         3514     3731     +217     
- Misses        235      238       +3     
Impacted Files Coverage Δ
pystac/layout.py 94.44% <ø> (ø)
pystac/catalog.py 95.63% <91.66%> (-0.21%) ⬇️
pystac/extensions/scientific.py 97.36% <97.36%> (ø)
pystac/extensions/sat.py 98.24% <98.24%> (ø)
pystac/__init__.py 100.00% <100.00%> (ø)
pystac/collection.py 97.44% <100.00%> (+0.46%) ⬆️
pystac/extensions/eo.py 90.40% <100.00%> (+0.40%) ⬆️
pystac/validation/stac_validator.py 92.30% <100.00%> (ø)
pystac/version.py 100.00% <100.00%> (ø)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3ccb5d0...1174848. Read the comment docs.

@lossyrob lossyrob merged commit 31f5662 into 0.5 Jan 15, 2021
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.

7 participants