Skip to content

Parameter sweeps over non-scalar values do not cooperate with xarray

Summary

xarray complains because the parameter dimension values are not mutable.

Steps to reproduce

Make a sweep over, e.g. grid_size and use it in multiverse plotting.

What is the current bug behaviour?

Cannot use xarray in this setting.

What is the expected correct behaviour?

Should be able to use it.

Ideas how to fix this?

It's difficult, because it would be a harsh requirement to parameter sweep values if they would need to be hashable...

  • Could go via tuples, but would need to convert them before writing out because tuples are no native yaml type
  • Could convert these keys to tuples only for xarray use ...

Either way, this would have to happen in dantro, I guess?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information