Skip to content

Commit

Permalink
fix: adding set item for fold frame to change
Browse files Browse the repository at this point in the history
the feature representing a coordinate
  • Loading branch information
Lachlan Grose committed Sep 16, 2021
1 parent bdd93ea commit 7d975bd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
17 changes: 15 additions & 2 deletions LoopStructural/modelling/features/structural_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,20 @@ def __init__(self, name, features, fold=None):
self.fold = fold
self.builder = None

def __getitem__(self, item):
def __getitem__(self, key):
"""
Parameters
----------
key index of feature to access
Returns
-------
the structural frame geological feature
"""
return self.features[key]

def __setitem__(self, key, value):
"""
Parameters
Expand All @@ -39,7 +52,7 @@ def __getitem__(self, item):
-------
the structural frame geological feature
"""
return self.features[item]
self.features[key] = value

def set_model(self, model):
"""Link the model that created the frame to the frame
Expand Down
3 changes: 0 additions & 3 deletions LoopStructural/modelling/fold/fold_rotation_angle.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@


class FoldRotationAngle:
"""
"""
def __init__(self, rotation_angle, fold_frame_coordinate, svario=False):
"""
Expand Down

0 comments on commit 7d975bd

Please sign in to comment.