lenstronomy
lenstronomy copied to clipboard
Refactor sampling parameter handling
This PR would continue the refactor of parameter handling implemented in #350
It will reimplement the following two parameter classes with the framework in Sampling/param_group.py
:
- [x] Refactor LightParams
- [ ] Refactor LensParams
Of course, this is low-priority. It adds no features but would hopefully ease maintenance in the future, and make it simpler to add new sampled parameters to these classes.
Just opening the PR for discussion
@jhod0 thanks a lot! This is super helpful. There are some tests failing in the CI. You can also test locally, e.g.
py.test test/test_Workflow