Skip to content

Commit

Permalink
update reference files
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Apr 4, 2022
1 parent 2d154b7 commit c4b55aa
Show file tree
Hide file tree
Showing 9 changed files with 3,196 additions and 3,191 deletions.
7 changes: 6 additions & 1 deletion stormevents/nhc/track.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,12 @@ def name(self) -> str:
"""

if self.__name is None:
name = self.data['name'].value_counts()[:].index.tolist()[0]
# get the most frequently-used storm name in the data
names = self.data['name'].value_counts()
if len(names) > 0:
name = names.index[0]
else:
name = ''

if name.strip() == '':
storms = nhc_storms(year=self.year)
Expand Down
Binary file modified tests/data/reference/test_coops_product_within_region/data.nc
Binary file not shown.
Binary file not shown.
340 changes: 170 additions & 170 deletions tests/data/reference/test_storm_event_track/florence2018.fort.22

Large diffs are not rendered by default.

340 changes: 170 additions & 170 deletions tests/data/reference/test_storm_event_track/ida2021.fort.22

Large diffs are not rendered by default.

420 changes: 210 additions & 210 deletions tests/data/reference/test_vortex_track_file_decks/a-deck_CARQ.22

Large diffs are not rendered by default.

2,478 changes: 1,239 additions & 1,239 deletions tests/data/reference/test_vortex_track_file_decks/a-deck_HMON.22

Large diffs are not rendered by default.

132 changes: 66 additions & 66 deletions tests/data/reference/test_vortex_track_file_decks/b-deck_BEST.22

Large diffs are not rendered by default.

2,670 changes: 1,335 additions & 1,335 deletions tests/data/reference/test_vortex_track_to_file/florence2018_OFCL.fort.22

Large diffs are not rendered by default.

0 comments on commit c4b55aa

Please sign in to comment.