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 combine_axes and split_axes more consistent #1039

Open gdementen opened 2 years ago

gdementen commented 2 years ago

Array.combine_axes does not have a name argument (we need to use the dict form to provide names) whereas Array.split_axes has a names argument. We should either add a name argument to combine_axes, or require the dict form in split_axes to name the resulting axes explicitly (i.e. remove the names argument in split_axes). Unsure which.