Opened 10 years ago

Closed 10 years ago

#483 closed defect (fixed)

General_EQSim_Tools assumes section IDs are continuous

Reported by: Kevin Milner Owned by:
Priority: major Milestone: OpenSHA 1.4
Component: sha Version:
Keywords: Cc:

Description

General_EQSim_Tools assumes section IDs are continuous, starting at one. While this can be the case, the EQSim file format allows for section IDs to be skipped (but requires that they still be sorted). This should be fixed.

Change History (1)

comment:1 Changed 10 years ago by Kevin Milner

Resolution: fixed
Status: newclosed

Fixed in [10860] and [10861]. Use Map<Integer, Integer> sectionID_indexMap to get the index for a given section ID:

int sectIndex = sectionID_indexMap.get(sectID);

Note: See TracTickets for help on using tickets.