Cell Measures, Ancillary Variables, and Cell Methods lost when performing magic methods on cubes (e.g. `__iadd__`, `__div__`)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 53/100
Línea de trabajo
Start in lib/iris/cube.py at the linked magic-method implementation, then trace how cube attributes, ancillary variables, and cell methods are handled during arithmetic. Check the single-cube array case as well as operations between cubes, and identify the relevant tests before changing behavior. Done means the applicable operations preserve metadata that remains valid and tests cover the cases reported.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
https://github.com/SciTools/iris/blob/2c05b4cc8e77c02748fd4caa2e46e49474408b31/lib/iris/cube.py#L155
I believe that 2 cubes cannot be added when their grids do not line up, so it is strange that common attributes like cell_area and ancillary variables like land_area_fraction are lost, and need to be manually added back in. Can this be fixed?
I have noticed the problem for __add__,__idiv__ and __div__ as well, and would guess that it applies to all magic operations on multiple cubes, whether in place (__iadd__,__imul__, __isub__, __idiv__ , and __itruediv__) or not (__add__,__mul__, __sub__, __div__ , and __truediv__)
I have also used __imul__ with an array of the same shape as the cube, which should implicitly only work because we assume the grid is the same, and cell_area is also lost! Furthermore, records of Cell Methods that were used (0 | time: mean) were also dropped.
Perhaps other attributes are getting dropped as well -- it would be good for someone to thoroughly check.
(FYI @valeriupredoi )
- Lenguaje dominante
- Python
- Estrellas
- 730
- Forks
- 323
- Merge medio
- 3 d 21 h
- PR fusionados (30 d)
- 16
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de SciTools/iris
-
Link Checker ReportPosiblemente ocupada @stephenworsley la tomó hace 12 días. AbiertoBot Type: Bug Type: Documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
SciTools/iris#7368 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
guess_bounds(yearly=True) fails on a single point, monthly=True worksPosiblemente ocupada @pp-mo la tomó hace 47 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
SciTools/iris#7311 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Agentic
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
Todos los issues de SciTools/iris
Issues similares
-
flaky: test_fire_returns_thread_per_http_entry_on_head waits 5 s per dispatch worker on busy shardsAbiertostatus/accepted type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
microsoft/apm#5309 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug vector-store
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
EverMind-AI/Raven#1413 ·
Los mantenedores suelen responder en 1 día
-
Tests: parallel pyinstallcheck runs oversubscribe the machine through nested TBB and BLAS poolsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
ACCESS-NRI/containerised-environments-infra#143 ·
Los mantenedores suelen responder en 2 días