Stricter locking (lock contained ndarrays and turn lists into tuples)
This commit is contained in:
parent
79990e3806
commit
c79eee2a8c
11 changed files with 88 additions and 9 deletions
|
|
@ -443,6 +443,7 @@ class Shape(metaclass=ABCMeta):
|
|||
Returns:
|
||||
self
|
||||
"""
|
||||
self.offset.flags.writeable = False
|
||||
object.__setattr__(self, 'locked', True)
|
||||
return self
|
||||
|
||||
|
|
@ -454,4 +455,5 @@ class Shape(metaclass=ABCMeta):
|
|||
self
|
||||
"""
|
||||
object.__setattr__(self, 'locked', False)
|
||||
self.offset.flags.writeable = True
|
||||
return self
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue