simphony / simphony-common

The native implementation of the Simphony cuds objects
BSD 2-Clause "Simplified" License
7 stars 5 forks source link

Make sure that meta objects are immutable #313

Closed itziakos closed 7 years ago

itziakos commented 8 years ago

It is important for low level objects like the ones in simphony.meta to be immutable for example there is not real reason why the vector attributes is not a tuple in this case of the Box

https://github.com/simphony/simphony-common/blob/master/simphony/cuds/meta/box.py

stefanoborini commented 7 years ago

This data is represented as numpy entities, and there's pretty much nothing we can do. If the data is a large matrix, it must be a numpy array, and therefore it must be mutable. Closing.