MIRIAD reader doesn't act on changing "extra" variables

Abierto
#1,019 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
data

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

needs research noncritical

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

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de RadioAstronomySoftwareGroup/pyuvdata

Todos los issues de RadioAstronomySoftwareGroup/pyuvdata

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.