Closed dylnclrk closed 4 years ago
@dylnclrk thanks for posting this. As you suggested, it seems that the problem is very likely with Python 3.8 which enforces not being able to change dictionary keys during iteration...it was always a bad idea to do it anyway, a new dictionary should have been made here.
However, I think it's a moot point now, because you must be using the most recently released version, 0.2.3, since the time
query was moved to datetime
in STAC and on the sat-search dev branch and 0.3.0-rc1 version, so this hack was no longer needed*
You can install the most recent released version, 0.3.0-rc1 with
$ pip install sat-search==0.3.0-rc1
however I'm also issuing a PR to make a final release after making some final updates to the notebook tutorial so tomorrow this should be available on PyPi as 0.3.0.
datetime
and time
is because at the last release I knew that we would be changing time
to datetime
(which I preferred), but we were waiting on OGC API - Features to change it in that spec (which STAC is based on)....so I dropped in that hack to support both.
Forgive me as I'm missing a bunch of background knowledge here, but I figured I'd raise this issue I encountered.
When creating a search like this (as guided by the example notebook):
I wonder if it's happening when we move the
datetime
entry over totime
, since it doesn't seem to happen for searches that don't include the datetime keyword,Fwiw, I'm running python 3.8.4, I'm not sure what version(s) sat-search is tested against.