Skip to content

Commit

Permalink
test_trop_cyclone: use get_test_file, for version control
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuel-schmid committed Nov 30, 2023
1 parent b53aec3 commit fe3fafe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions climada/hazard/test/test_trop_cyclone.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import xarray as xr

from climada.util import ureg
from climada.util.api_client import Client
from climada.test import get_test_file
from climada.hazard.tc_tracks import TCTracks
from climada.hazard.trop_cyclone import (
TropCyclone, get_close_centroids, _vtrans, _B_holland_1980, _bs_holland_2008,
Expand All @@ -44,8 +44,7 @@
TEST_TRACK = DATA_DIR.joinpath("trac_brb_test.csv")
TEST_TRACK_SHORT = DATA_DIR.joinpath("trac_short_test.csv")

CENTR_TEST_BRB = Centroids.from_hdf5(
Client().get_dataset_file(name='centr_test_brb', status='test_dataset'))
CENTR_TEST_BRB = Centroids.from_hdf5(get_test_file(name='centr_test_brb', format='hdf5'))


class TestReader(unittest.TestCase):
Expand Down

0 comments on commit fe3fafe

Please sign in to comment.