Skip to content

Commit

Permalink
fix: add featureId when parsing fault_orientations (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
rabii-chaarani authored Jan 13, 2025
1 parent 9ca260f commit 924c2cf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions map2loop/mapdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,14 @@ def parse_fault_orientations(self) -> tuple:
else:
fault_orientations["ID"] = numpy.arange(len(fault_orientations))
self.data[Datatype.FAULT_ORIENTATION] = fault_orientations

if config["featureid_column"] in self.raw_data[Datatype.FAULT_ORIENTATION]:
fault_orientations["featureId"] = self.raw_data[Datatype.FAULT_ORIENTATION][
config["featureid_column"]
]
else:
fault_orientations["featureId"] = numpy.arange(len(fault_orientations))

return (False, "")

@beartype.beartype
Expand Down

0 comments on commit 924c2cf

Please sign in to comment.