You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect either a TypeError (in case containment checking is not supported) or the answer (True/False).
Actual results
Traceback (most recent call last):
File "/data/gholl/checkouts/protocode/mwe/dq-keyerror.py", line 3, in <module>
"name" in dq
File "/data/gholl/checkouts/satpy/satpy/dataset/dataid.py", line 512, in __getitem__
return self._dict[key]
~~~~~~~~~~^^^^^
KeyError: 0
I don't understand where the 0 is coming from.
Environment Info:
Satpy Version: main
Additional context
I want to test if a DataQuery contains a time parameter in my attempt of implementing temporal composites at #2495.
Workaround:
"name"indq.to_dict()
The text was updated successfully, but these errors were encountered:
Describe the bug
Checking for containment in a DataQuery fails with KeyError.
To Reproduce
Expected behavior
I expect either a TypeError (in case containment checking is not supported) or the answer (True/False).
Actual results
I don't understand where the
0
is coming from.Environment Info:
Additional context
I want to test if a
DataQuery
contains a time parameter in my attempt of implementing temporal composites at #2495.Workaround:
The text was updated successfully, but these errors were encountered: