Skip to content

Commit 956166c

Browse files
committed
change default 'NA' to empty.
1 parent 80c9694 commit 956166c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

climada/hazard/tag.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Tag(object):
1818
description (str or list(str)): description(s) of the data
1919
"""
2020

21-
def __init__(self, haz_type='NA', file_name='', description=''):
21+
def __init__(self, haz_type='', file_name='', description=''):
2222
"""Initialize values.
2323
2424
Parameters:
@@ -33,7 +33,7 @@ def __init__(self, haz_type='NA', file_name='', description=''):
3333

3434
def append(self, tag):
3535
"""Append input Tag instance information to current Tag."""
36-
if self.haz_type == 'NA':
36+
if self.haz_type == '':
3737
self.haz_type = tag.haz_type
3838
if tag.haz_type != self.haz_type:
3939
LOGGER.error("Hazards of different type can't be appended:"\

climada/hazard/test/test_source.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def test_hazard_pass(self):
130130
n_events = 100
131131
n_centroids = 45
132132

133-
self.assertEqual(hazard.units, 'NA')
133+
self.assertEqual(hazard.units, '')
134134

135135
self.assertEqual(hazard.centroids.coord.shape, (n_centroids, 2))
136136
self.assertEqual(hazard.centroids.coord[0][0], -25.95)

0 commit comments

Comments
 (0)