-
Notifications
You must be signed in to change notification settings - Fork 8
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
Use function factory pattern to pass cutting functions to sim_gs_n()
#201
Conversation
Thanks for applying the function factory, @jdblischak ! Before the merge, could you please introduce us to the changes and new syntax tomorrow? |
Overall looking good. Let's try follow the testing best practices in designing your test suite:
|
@LittleBeannie Yes, of course. I'll explain everything in today's meeting. Also note that this morning I also converted the |
@nanxstats I switched to |
bcc37ad
to
b302c3e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for these terrific improvement, @jdblischak ! I will add an example of maxcombo test after this PR is merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! I love simple, reliable, and effective solutions like this.
Follow-up to #195. Closes #196.
This PR makes the following updates:
get_analysis_date()
expressions that then need to be evaluated, the argumentcutting
ofsim_gs_n()
now accepts a list of cutting functions. These functions are created by the function factorycreate_cutting()
test
ofsim_gs_n()
, only the test function itself is passed, and any further arguments are passed to the testing function via...
Note that I didn't fully convert
maxcombo()
. I don't think I fully understand the purpose of this function. Its arguments are quoted functions, but they are never evaluated. Instead their arguments forrho
andgamma
are extracted and passed tofh_weight()
. Is there any reason thatmaxcombo()
couldn't instead just receive the vectors ofrho
andgamma
directly? And why ismaxcombo()
needed whenfh_weight()
already exists?