We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7167d6c commit 872f8efCopy full SHA for 872f8ef
pystac/extensions/processing.py
@@ -209,14 +209,15 @@ def expression(self: Self) -> dict[str, str | Any] | None:
209
the relation type processing-expression.
210
.. code-block:: python
211
>>> proc_ext.expression = "(b4-b1)/(b4+b1)"
212
+ >>> proc_ext.expression = "(b4-b1)/(b4+b1)"
213
"""
214
return self._get_property(EXPRESSION_PROP, dict[str, str | Any])
215
216
@expression.setter
217
def expression(self: Self, v: str | Any | None) -> None:
- if isinstance(v.expression, str):
218
+ if isinstance(v, str):
219
exp_format = "string"
- elif isinstance(v.expression, object):
220
+ elif isinstance(v, object):
221
exp_format = "object"
222
else:
223
raise ValueError(
0 commit comments