larray-project / larray

N-dimensional labelled arrays in Python
https://larray.readthedocs.io/
GNU General Public License v3.0
8 stars 6 forks source link

make Axis and AxisCollection readonly #956

Open gdementen opened 3 years ago

gdementen commented 3 years ago

Modifying them inplace is not entirely supported anyway (it is easy to break stuff when modifying them inplace). It would simplify some code and allow us to do some optimizations (e.g. cache AxisCollection.shape)