Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools.py:554: RuntimeWarning: invalid value encountered in cast #1094

Open
pjonsson opened this issue Dec 4, 2024 · 0 comments
Open

tools.py:554: RuntimeWarning: invalid value encountered in cast #1094

pjonsson opened this issue Dec 4, 2024 · 0 comments

Comments

@pjonsson
Copy link
Contributor

pjonsson commented Dec 4, 2024

Description

I upgraded to 1.8.43 yesterday (the docker image), and #1038 has not re-appeared yet, so it seems that got fixed. However, I found this in my logs:

/usr/local/lib/python3.12/dist-packages/datacube/utils/geometry/tools.py:554: RuntimeWarning: invalid value encountered in cast
  _out = np.ceil(xy.max(axis=0)).astype('int32') + padding
/usr/local/lib/python3.12/dist-packages/datacube/utils/geometry/tools.py:553: RuntimeWarning: invalid value encountered in cast
  _in = np.floor(xy.min(axis=0)).astype('int32') - padding

I don't think it's a new warning for 1.8.43, it's just that these warnings are no longer drowning in #1038.

Steps to Reproduce

Sorry, no idea how to reproduce.

Context (Environment)

datacube-ows version (datacube-ows-update --version):

1.8.43

ows_config.py file (link, sample code)

datacube product metadata (datacube product show product_name)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant