Skip to content

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

@pjonsson

Description

@pjonsson

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions