Stricter locking (lock contained ndarrays and turn lists into tuples)

This commit is contained in:
Jan Petykiewicz 2020-05-11 19:29:00 -07:00
commit c79eee2a8c
11 changed files with 88 additions and 9 deletions

View file

@ -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