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

オープン
#1,019 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
data

調査の方向性

read_miriad のメインループから始め、関連するエントリーポイントとして default_miriad_variables、other_miriad_variables、check_variables、および UVData の extra_keywords 属性を使用します。CARMA のテストファイルで動作を再現し、現在の遅いループを使わずに追加変数の変更を保持する方法を調べます。追加変数の値の変更が extra_keywords に正しく反映され、reader のパフォーマンスが許容範囲内に保たれれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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)
主要言語
Python
スター
103
フォーク
40
平均マージ
4日 11時間
マージ済み PR(30日)
13

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

RadioAstronomySoftwareGroup/pyuvdata のほかの issue

RadioAstronomySoftwareGroup/pyuvdata の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。