Skip to content

MLM bugfixes #1556

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

Open
wants to merge 73 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
b9555c8
added missing Classification parameter title
jonas-hurst Mar 18, 2025
f1c10db
added changes to changelog
jonas-hurst Mar 18, 2025
f3e7141
added missing parameters to test_classification_object: title, nodata…
jonas-hurst Mar 18, 2025
1cb33e4
added ml extension
jonas-hurst Mar 26, 2025
7dd6e99
added stac:mlm extension tests
jonas-hurst Mar 26, 2025
a89481b
added collection and asset extension
jonas-hurst Mar 31, 2025
9beabc1
removed TODO
jonas-hurst Mar 31, 2025
7165b61
added documentation
jonas-hurst Apr 2, 2025
478580a
added docstring to classes
jonas-hurst Apr 2, 2025
c74d544
renamed asset extension classes
jonas-hurst Apr 2, 2025
1af5e3e
added mlm extension classes
jonas-hurst Apr 2, 2025
a3bec04
added mlm extension
jonas-hurst Apr 2, 2025
888c899
Merge branch 'main' into main
jonas-hurst Apr 2, 2025
46516ea
removed todos
jonas-hurst Apr 2, 2025
e25e615
Merge remote-tracking branch 'origin/main'
jonas-hurst Apr 2, 2025
56f0ed0
added extension migration
jonas-hurst Apr 2, 2025
10bbb41
removed useless code
jonas-hurst Apr 3, 2025
ceec5f1
fixed docstrings
jonas-hurst Apr 3, 2025
26b221c
fixed __eq__ NotImplemented
jonas-hurst Apr 3, 2025
3cefe9f
fixed repr strings
jonas-hurst Apr 3, 2025
bd81c78
improved test coverage
jonas-hurst Apr 3, 2025
28dc4b3
improved test coverage
jonas-hurst Apr 3, 2025
2fc681e
changed exceptions
jonas-hurst Apr 3, 2025
fcfba65
fixed docstring
jonas-hurst Apr 3, 2025
10b7c93
Merge branch 'main' into main
gadomski Apr 7, 2025
c75f50c
Update CHANGELOG.md
jonas-hurst Apr 14, 2025
f33c75a
fixed typo
jonas-hurst Apr 14, 2025
cfd713d
fixed typo
jonas-hurst Apr 14, 2025
fb35994
fixed typo
jonas-hurst Apr 14, 2025
40b0c8f
fixed typo
jonas-hurst Apr 14, 2025
0fb78c8
fixed typo
jonas-hurst Apr 14, 2025
16bfdcd
line break to satisfy line length requirement
jonas-hurst Apr 14, 2025
69e9bc3
fixed typo in ENTRYPOINT_ASSET_PROP
jonas-hurst Apr 14, 2025
036aa06
fixed typo in COMPILE_METHOD_ASSET_PROP
jonas-hurst Apr 14, 2025
68075aa
removed dummy docstring
jonas-hurst Apr 14, 2025
4d1f860
fixed Enum tuples
jonas-hurst Apr 14, 2025
58feb54
added mlm to CollectionExt
jonas-hurst Apr 14, 2025
a0221f3
added mlm to Asset and ItemAssetDefinition mlm accessor
jonas-hurst Apr 15, 2025
477f5f9
Update CHANGELOG.md
gadomski Apr 15, 2025
5a7121c
Merge branch 'stac-utils:main' into main
jonas-hurst Apr 22, 2025
30c3cb4
fixed typo
jonas-hurst Apr 22, 2025
d5717bf
fixed enum values
jonas-hurst Apr 22, 2025
325241a
fixed property name for error message
jonas-hurst Apr 22, 2025
7a93619
fix: pop max value
jonas-hurst Apr 22, 2025
ca229ba
fix docstring typo
jonas-hurst Apr 22, 2025
6141557
fix value_scaling property type in ModelInput
jonas-hurst Apr 22, 2025
41b4c77
change tests for value_scaling
jonas-hurst Apr 22, 2025
6013b20
fix: added missing migrations
jonas-hurst Apr 23, 2025
d21d8d1
added testing of migrations
jonas-hurst Apr 23, 2025
8b333b5
added regex constraint for mlm:framework to migration
jonas-hurst Apr 24, 2025
a3817d4
added migration from 1.1 to 1.2
jonas-hurst Apr 25, 2025
0480c32
added migration from 1.2 to 1.3
jonas-hurst Apr 25, 2025
6d727a4
migrate now forbidden properties in assets
jonas-hurst Apr 25, 2025
fa4ce93
fix: added missing parameter to docstring
jonas-hurst Apr 28, 2025
72a0b45
refactor: move properties to parent classes
jonas-hurst Apr 28, 2025
c164307
fix: removed forbidden properties from asset extension
jonas-hurst Apr 28, 2025
3daa5b5
changed asset extension mechanism from name to architecture
jonas-hurst Apr 28, 2025
9a8b37e
removed forbidden properties from detailled asset tests
jonas-hurst Apr 28, 2025
c7298e2
enabled migration for Item, Collection, assets, item-assets
jonas-hurst Apr 28, 2025
db68c9f
added more version migrations
jonas-hurst Apr 28, 2025
b666f30
test new migrations
jonas-hurst Apr 28, 2025
6c5af46
Merge branch 'stac-utils:main' into main
jonas-hurst Apr 28, 2025
9c24f64
added types-requests
jonas-hurst Apr 29, 2025
4ef3a47
added tests for migration
jonas-hurst Apr 29, 2025
d3e45af
added migration
jonas-hurst Apr 29, 2025
4d683ef
added tests
jonas-hurst Apr 29, 2025
9d388fb
updated tests
jonas-hurst Apr 30, 2025
40c7925
update exception message
jonas-hurst Apr 30, 2025
f58cc6a
added raster migration
jonas-hurst May 2, 2025
8f63dfb
updated default artifact_type when migrating
jonas-hurst May 2, 2025
50dd174
added tests
jonas-hurst May 2, 2025
d7ae1ec
added mlm changes
jonas-hurst May 2, 2025
df2ef7f
added PR
jonas-hurst May 2, 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
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@
media type value for these types and new media types COPC and VND_PMTILES
([#1554](https://github.com/stac-utils/pystac/pull/1554))

### Fixed

- `extensions.mlm` various fixes [#1556](https://github.com/stac-utils/pystac/pull/1556)
- 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",
"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