Open unalmis opened 3 months ago
This was not really resolved by #1166. We came up with a hack for the two cases that exist in the current code. Is that solution our plan going forward for all similar instances? Or do we still want to add special logic to handle this?
Requested by @ddudt
Could be nice to generalize the
register_compute_fun
decorator for multiple names and multiple descriptions for compute functions that compute multiple stuff. My suggestion would be to check ifname
anddescription
is a list and then loop through to register them incompute.utils/data_index.py
.Note that this would be a cosmetic change to remove duplicate code. We already ensure computation is not performed when something is already computed.