Currently, the CosmoTables are an attribute of the InputParameters, with a default that is computed using classy.
However, we never want to actually pass CosmoTables into the InputParameters, right? We always want to compute them based on the other parameters. They are derived, not fundamental.
Currently, since the default is always computed for an attrs class, just specifying parameters takes quite a while (if power spectrum is CLASS). This is very annoying if all you're trying to do is create/write a template for example.
If this was just a cached property, we'd never have to worry about it being wrong or out of sync, and it would only be generated as needed.
Currently, the
CosmoTablesare an attribute of the InputParameters, with a default that is computed using classy.However, we never want to actually pass
CosmoTablesinto theInputParameters, right? We always want to compute them based on the other parameters. They are derived, not fundamental.Currently, since the default is always computed for an attrs class, just specifying parameters takes quite a while (if power spectrum is CLASS). This is very annoying if all you're trying to do is create/write a template for example.
If this was just a cached property, we'd never have to worry about it being wrong or out of sync, and it would only be generated as needed.