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

Implement new align options #1053

Open gdementen opened 1 year ago

gdementen commented 1 year ago

'left_order' and 'right_order' which fail if the set of labels are different, but allows reordering labels automatically. I think 'left_order' should be the default value in #463.

gdementen commented 1 year ago

It would seem consistent to implement that by default... but operations between arrays with different label order will be (much?) slower than those with the same order. Hence I would test performance before using this as the default. Maybe it should run but print a warning (but then it's not really an improvement to the current situation).