Skip to content

Commit

Permalink
Renamed => - makes indexing more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-turner-1 committed Sep 27, 2024
1 parent f84d383 commit 7799c8d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/access_nri_intake/source/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ class _AccessNCFileInfo:
"""
Holds information about a NetCDF file that is used to create an intake-esm
catalog entry.
______
Notes:
Use of both path and filename seems redundant, but constructing filename from
the path using a __post_init__ method makes testing more difficult. On balance,
more explicit tests are probably more important than the slight redundancy.
"""

filename: Union[str, Path]
Expand Down Expand Up @@ -130,7 +136,7 @@ def to_ncinfo_dict(self) -> dict[str, list[str]]:
defined explicitly for use in the _AccessNCFileInfo constructor.
"""
return {
"coords": self.coord_list,
"coord": self.coord_list,
"coord_long_name": self.long_name_list,
"coord_cartesian_axes": self.cartesian_axis_list,
"coord_calendar_types": self.calendar_type_list,
Expand Down

0 comments on commit 7799c8d

Please sign in to comment.