Skip to content

Commit

Permalink
Removed unused code [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
micheles committed Oct 18, 2024
1 parent 806a8f5 commit 01b68d7
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions openquake/risklib/asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,12 +559,6 @@ def __repr__(self):
('type', hdf5.vstr),
('unit', hdf5.vstr)])

def get_area_type(cost_types):
ct = cost_types[cost_types['name'] == 'area']
if len(ct) == 0:
return '?'
return ct['type'][0]


# The fields in the exposure are complicated. For the global
# risk model you will have things like the following:
Expand All @@ -587,7 +581,7 @@ def get_other_fields(fields):


def _get_exposure(fname, stop=None):
# returns Exposure instance, list of asset nodes
# returns (Exposure instance, asset nodes)
[xml] = nrml.read(fname, stop=stop)
if not xml.tag.endswith('exposureModel'):
raise InvalidFile('%s: expected exposureModel, got %s' %
Expand Down

0 comments on commit 01b68d7

Please sign in to comment.