Skip to content

Commit

Permalink
add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
tnakazato committed Feb 3, 2025
1 parent c3be719 commit 276b173
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/nro45data/psw/ms2/filler/data_description.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@


def _get_data_description_row(hdu: BinTableHDU) -> Generator[dict, None, None]:
"""Provide data description row information.
Args:
hdu: NRO45m psw data in the form of BinTableHDU object.
Yields:
Dictionary containing data description row information.
"""
array_conf = get_array_configuration(hdu)
ddd, _, _, _ = get_data_description_map(array_conf)

Expand All @@ -34,4 +42,10 @@ def _get_data_description_row(hdu: BinTableHDU) -> Generator[dict, None, None]:


def fill_data_description(msfile: str, hdu: BinTableHDU):
"""Fill MS DATA_DESCRIPTION table.
Args:
msfile: Name of MS file.
hdu: NRO45m psw data in the form of BinTableHDU object.
"""
fill_ms_table(msfile, hdu, "DATA_DESCRIPTION", _get_data_description_row)

0 comments on commit 276b173

Please sign in to comment.