Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

split scatter models into constant and variable #263

Closed
duncandc opened this issue Nov 30, 2015 · 3 comments
Closed

split scatter models into constant and variable #263

duncandc opened this issue Nov 30, 2015 · 3 comments

Comments

@duncandc
Copy link
Contributor

@aphearin

I think there should be two separate models for constant scatter and variable scatter. This should make it much more transparent. They could both be a subclass of a super LogNormalScatterModel or NormalScatterModel.

@duncandc
Copy link
Contributor Author

P.S. developing this in my own fork/branch

https://github.com/duncandc/halotools/tree/sham_devel

@aphearin
Copy link
Contributor

This is definitely a good idea. I'm trying to move away from having too many options within a single constructor, and splitting up separate functionality like this into a subclass is how I'm making the style changes.

Probably the least amount of work in building the subclass would be if you keep the internals fixed, but just use the interpolation on a single control point. Whatever you do, don't change the param_dict keys. So in your subclass, the instance should have a single parameter called 'scatter_model_param1' (I think I remembered that right).

@aphearin aphearin added this to the v0.2 milestone Mar 8, 2016
@aphearin aphearin modified the milestones: v0.3, v0.2 May 17, 2016
@aphearin aphearin modified the milestones: v0.4, v0.3 Jun 26, 2016
@aphearin aphearin modified the milestones: next-release, v0.4 Jul 25, 2016
@aphearin
Copy link
Contributor

aphearin commented May 8, 2017

In light of discussion with @duncandc in #746 , this issue is no longer relevant.

@aphearin aphearin closed this as completed May 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants