Skip to content
Open

Mlm #1571

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
52bc045
fixed typo
jonas-hurst Apr 22, 2025
fdb9164
fixed enum values
jonas-hurst Apr 22, 2025
bd4d736
fixed property name for error message
jonas-hurst Apr 22, 2025
631db21
fix: pop max value
jonas-hurst Apr 22, 2025
c3103dd
fix docstring typo
jonas-hurst Apr 22, 2025
6800390
fix value_scaling property type in ModelInput
jonas-hurst Apr 22, 2025
1424cd7
change tests for value_scaling
jonas-hurst Apr 22, 2025
707a5f2
fix: added missing migrations
jonas-hurst Apr 23, 2025
d450c56
added testing of migrations
jonas-hurst Apr 23, 2025
21eb6c7
added regex constraint for mlm:framework to migration
jonas-hurst Apr 24, 2025
6ca98f0
added migration from 1.1 to 1.2
jonas-hurst Apr 25, 2025
117dac3
added migration from 1.2 to 1.3
jonas-hurst Apr 25, 2025
25bc3ea
migrate now forbidden properties in assets
jonas-hurst Apr 25, 2025
71e5d1e
fix: added missing parameter to docstring
jonas-hurst Apr 28, 2025
420f876
refactor: move properties to parent classes
jonas-hurst Apr 28, 2025
ddec1fb
fix: removed forbidden properties from asset extension
jonas-hurst Apr 28, 2025
04f6b32
changed asset extension mechanism from name to architecture
jonas-hurst Apr 28, 2025
14006e6
removed forbidden properties from detailled asset tests
jonas-hurst Apr 28, 2025
84f40e8
enabled migration for Item, Collection, assets, item-assets
jonas-hurst Apr 28, 2025
35800e2
added more version migrations
jonas-hurst Apr 28, 2025
f9b576e
test new migrations
jonas-hurst Apr 28, 2025
a919888
added types-requests
jonas-hurst Apr 29, 2025
659a2b6
added tests for migration
jonas-hurst Apr 29, 2025
9002c87
added migration
jonas-hurst Apr 29, 2025
817ac78
added tests
jonas-hurst Apr 29, 2025
18ae927
updated tests
jonas-hurst Apr 30, 2025
90f37ee
update exception message
jonas-hurst Apr 30, 2025
3f37e95
added raster migration
jonas-hurst May 2, 2025
9194383
updated default artifact_type when migrating
jonas-hurst May 2, 2025
448dd9b
added tests
jonas-hurst May 2, 2025
74144c2
added mlm changes
jonas-hurst May 2, 2025
e2eae92
added PR reference
jonas-hurst Aug 13, 2025
a22d987
Merge branch 'main' into mlm
gadomski Aug 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@
- Type of `proj:code` setter ([#1560](https://github.com/stac-utils/pystac/pull/1560))
- Use `urllib3` to fix parsing non-ascii in urls ([#1566](https://github.com/stac-utils/pystac/pull/1566))
- Some return types and other **mypy** nits ([#1569](https://github.com/stac-utils/pystac/pull/1569))

- `extensions.mlm` various fixes ([#1571](https://github.com/stac-utils/pystac/pull/1571))
- Fixed ResizeType typos `interpolation-nearest` and `interpolation-linear`
- Fixed displaying the correct property in error message for `ResultStructure.data_type`
- Fixed `ValueScaling.maximum` setter to pop when None is given
- Fixed `ModelInput.value_scaling` to be `list[ValueScaling]` instead of `ValueScaling`
- Fixed missing version migrations

## [v1.13.0] - 2025-04-15

### Added
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ dev = [
"types-jsonschema>=4.23.0.20240813",
"types-orjson>=3.6.2",
"types-python-dateutil>=2.9.0.20241003",
"types-requests>=2.32.0.20250328",
"types-urllib3>=1.26.25.14",
"urllib3>=2.3.0",
"virtualenv>=20.26.6",
Expand Down
2 changes: 1 addition & 1 deletion pystac/extensions/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def file(self) -> FileExtension[Asset]:

@property
def mlm(self) -> AssetGeneralMLMExtension[Asset] | AssetDetailedMLMExtension:
if "mlm:name" in self.stac_object.extra_fields:
if "mlm:architecture" in self.stac_object.extra_fields:
return AssetDetailedMLMExtension.ext(self.stac_object)
else:
return AssetGeneralMLMExtension.ext(self.stac_object)
Expand Down
Loading
Loading