Meaningfully compare Scene and MultiScene objects for equality #1583
Labels
backwards-incompatibility
Causes backwards incompatibility or introduces a deprecation
component:multiscene
component:scene
Feature Request
Is your feature request related to a problem? Please describe.
For a unit test, I wanted to ensure that my code was producing the right
MultiScene
object, so I tested for equality. However, neitherScene
norMultiScene
objects have useful equality checks implemented. The following both evaluate to False:Scene() == Scene()
MultiScene() == MultiScene()
Describe the solution you'd like
Scene
andMultiScene
objects are containers. Either containers should compare equal if all their contents and, if applicable, metadata compare equal; or the equality operator should itself be a container, like for numpy arrays or xarray datasets.Describe any changes to existing user workflow
Scene
orMultiScene
objects reduces to object identity. The meaning would change.Additional context
This would have to trigger a dask computation, which might be problematic.
The text was updated successfully, but these errors were encountered: