Open emiliom opened 6 years ago
Timestamp().to_datetime
was deprecated in Pandas 0.21 and removed in 0.23. Since Ulmo does not specify dependency versions, the latest version of Pandas is used, causing this error. It would be great to get this fixed on the Ulmo end. In the interim I'll see if Pandas can be pinned to an older version that still has .to_datetime support." The failure is "happening at this line in Ulmo.
Timestamp.to_datetime()
: DEPRECATED: use to_pydatetime()
instead. Convert a Timestamp object to a native Python datetime object."util/misc.py
can be leveraged; eg, https://github.com/ulmo-dev/ulmo/blob/master/ulmo/util/misc.py#L48. ACTUALLY, this is the line that Azavea found to be failing!!conda_environment.yml
was pinned to pandas<=0.22.0
in https://github.com/ulmo-dev/ulmo/commit/a324fc0149839ab52e0a4009662ca32827c42c3ewml_values_md
branch on my forkSubmitted ulmo PR with the two updates involving waterml parsing and wof/suds timeout, https://github.com/ulmo-dev/ulmo/pull/165
I won't fix the other issue (pandas Timestamp().to_datetime) at this time, b/c the current ulmo conda_environment.yml
was already pinned to pandas<=0.22.0
.
Link to the Python code in the MMW client that handles querying and reading CUAHSI HIS data services: https://github.com/WikiWatershed/model-my-watershed/tree/develop/src/mmw/apps/bigcz/clients/cuahsi ulmo WOF access is done here
For reference re: database optimization strategies to explore: https://github.com/ODM2/ODM2-performance-optimization/issues/7
Regarding https://github.com/ODM2/WOFpy/issues/228#issuecomment-452091892: my ulmo PR (plus many others) has been merged into ulmo master. A new release is being prepared, and will almost certainly be ready by mid February. A new conda package will be created on conda-forge immediately after.
@emiliom, thanks for moving the Ulmo PR forward into an upcoming Ulmo release. That is awesome.
We've issued a new ulmo release, 0.8.5, with all recent bug fixes and improvements, including the ones discussed in this issue. It's available on conda-forge and pypi.
Compiling in one place (to make it easier to follow up) various issues and investigation that have arisen in testing EnviroDIY WOFpy performance on the Model-My-Watershed App.
ulmo
with clear description of recommended enhancement to WOF reader. See also https://github.com/WikiWatershed/model-my-watershed/issues/2807 (directly related to the ulmo issue, I think)224 is an issue here that compiled discussions and decisions from the initial EnviroDIY WOFpy deployment and its endpoint registration at CUAHSI. Anthony closed it in late July. If there's time, go over it to see if there's anything of ongoing value there.