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

tidy: Step Scale Sanity chekc et. al. #253

Merged
merged 5 commits into from
Dec 19, 2024

Conversation

KSkwarczynski
Copy link
Member

Pull request description

We often use defined step scale. However we know based on literature what it should be. Now simply throw warning if step scale is very different. This should help spot mistakes.

Changes or fixes

  • No longer have to covnert const char to string in adaptive code
  • Now default error is 1 not 0. error being 0 can be interpeted as fixed param and we don't want this
  • remove a lot of blank line in plotting
  • raw pointer -> std::vecotr in cov
  • more bibliography (hope is usefull)
  • use new LLH scan bot

Examples

Copy link

Hi @KSkwarczynski, thank you for contributing to MaCh3! Please wait for MaCh3 developers to review your PR. If no one answers within a week, please message people from this list: https://github.com/orgs/mach3-software/teams/mach3admin . While waiting, please enjoy this

meme

Use this action on your projects. Use jokes on issues instead.

@github-actions github-actions bot added Documentation Improvements or additions to documentation Plotting plotting related MCMC MCMC related Nu Osc/Xsec Related with neutrino interactions or oscialtions CI/CD CI/CD labels Dec 18, 2024
MACH3LOG_ERROR("You are trying so set StepScale to 0 this will not work");
throw MaCh3Exception(__FILE__ , __LINE__ );
}
MACH3LOG_INFO("{} setStepScale() = {}", getName(), scale);
const double SuggestedScale = 2.38*2.38/_fNumPar;
if(std::fabs(scale - SuggestedScale)/SuggestedScale > 1) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't warn you if you go too small right? ie scale=0 won't throw an error. Maybe make it >0.8?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Case scale = 0 is handle separately just above this check. Atlhough we don't have any checks for negative so will update it

@KSkwarczynski KSkwarczynski merged commit 6f20369 into develop Dec 19, 2024
13 of 15 checks passed
@KSkwarczynski KSkwarczynski deleted the feature_StepScaleSanityr branch December 19, 2024 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/CD CI/CD Documentation Improvements or additions to documentation MCMC MCMC related Nu Osc/Xsec Related with neutrino interactions or oscialtions Plotting plotting related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants