MIRIAD reader doesn't act on changing "extra" variables
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Comienza en el bucle principal de read_miriad, usando default_miriad_variables, other_miriad_variables, check_variables y el atributo extra_keywords de UVData como puntos de entrada relevantes. Reproduce el comportamiento con el archivo de prueba de CARMA y examina cómo deberían conservarse los cambios en las variables adicionales sin el bucle lento actual. La tarea estará terminada cuando los cambios en los valores de las variables adicionales se representen correctamente en extra_keywords y el lector mantenga un rendimiento aceptable.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
There is a minor issue w/ the MIRIAD file reader, where so-called "extra" variables (i.e., those other than the explicitly listed/known variables found in default_miriad_variables and other_miriad_variables) in the MIRIAD file are only read once at the top of the file and assumed static, without verification that the values are not changing over the course of the track. This primarily seems to be an issue with the CARMA test file, which contains several values that are not part of the "standard" set of MIRIAD variables.
Note that the code below exists (as of v2.1.6) in the main loop of read_miriad, where check_variables carried forward the first instance of each of the values within extra_variables to verify whether or not these values changed but a) this loop is incredibly slow, and b) the values within check_variables never get propagated forward into the extra_keywords attribute of the UVData object.
# check extra variables for changes compared with initial value
for extra_variable in list(check_variables.keys()):
if type(check_variables[extra_variable]) == str:
if uv[extra_variable] != check_variables[extra_variable]:
check_variables.pop(extra_variable)
else:
if not np.allclose(
uv[extra_variable], check_variables[extra_variable]
):
check_variables.pop(extra_variable)
- Lenguaje dominante
- Python
- Estrellas
- 103
- Forks
- 40
- Merge medio
- 4 d 11 h
- PR fusionados (30 d)
- 13
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 RadioAstronomySoftwareGroup/pyuvdata
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
RadioAstronomySoftwareGroup/pyuvdata#1751 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
RadioAstronomySoftwareGroup/pyuvdata#1750 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 3/5 Medio día Aptitud para principiantes 48/100
RadioAstronomySoftwareGroup/pyuvdata#1749 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
RadioAstronomySoftwareGroup/pyuvdata#1748 ·
Los mantenedores suelen responder en 3 días
-
Documentation updatesAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
RadioAstronomySoftwareGroup/pyuvdata#1743 ·
Los mantenedores suelen responder en 3 días
Todos los issues de RadioAstronomySoftwareGroup/pyuvdata
Issues similares
-
Internal ErrorAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
frappe/frappe_docker#2071 ·
Los mantenedores suelen responder en 1 día
-
bug python
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
traceloop/openllmetry#4717 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
The-Pocket/PocketFlow#161 ·
-
[Bug]: Webapp workspace fails to render in Safari — "Can't find variable: requestIdleCallback"Abiertocomp/desktop P2 type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
NousResearch/hermes-agent#157702 ·
Los mantenedores suelen responder en 1 día
-
scibench_physics / scibench_chemistry: a correct answer scores 0 when the unit has a power of tenPosiblemente ocupada @BahaaMattar la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
EvolvingLMMs-Lab/lmms-eval#1699 ·
Los mantenedores suelen responder en 1 día