Skip to content

Commit 872f8ef

Browse files
committed
feat: ItemProcessingExtension
1 parent 7167d6c commit 872f8ef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pystac/extensions/processing.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,14 +209,15 @@ def expression(self: Self) -> dict[str, str | Any] | None:
209209
the relation type processing-expression.
210210
.. code-block:: python
211211
>>> proc_ext.expression = "(b4-b1)/(b4+b1)"
212+
>>> proc_ext.expression = "(b4-b1)/(b4+b1)"
212213
"""
213214
return self._get_property(EXPRESSION_PROP, dict[str, str | Any])
214215

215216
@expression.setter
216217
def expression(self: Self, v: str | Any | None) -> None:
217-
if isinstance(v.expression, str):
218+
if isinstance(v, str):
218219
exp_format = "string"
219-
elif isinstance(v.expression, object):
220+
elif isinstance(v, object):
220221
exp_format = "object"
221222
else:
222223
raise ValueError(

0 commit comments

Comments
 (0)