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

Allow functions as dispersion variables #355

Merged

Conversation

patkenneally
Copy link
Collaborator

@patkenneally patkenneally commented Nov 5, 2024

  • Tickets addressed: hot-fix
  • Review: By commit
  • Merge strategy: Merge (no squash)

Description

This PR makes a small adjustment to allow a function to be passed as a monte carlo dispersion string. The string is eval'd and if callable the function is called with the accompanying dispersion value as the parameter. This is a really terrible solution. However, with much of the monte carlo infrastructure being significantly refactored soon, it's a temporary blight which will be swept away by the refactor.

Verification

Tested on multiple monte carlos.

Documentation

NA

Future work

NA

@patkenneally patkenneally self-assigned this Nov 5, 2024
@patkenneally patkenneally force-pushed the feature/allow-function-as-dispersion-variable branch 2 times, most recently from bc03387 to b834047 Compare November 5, 2024 02:24
@patkenneally patkenneally merged commit e2fb22d into develop Nov 5, 2024
4 checks passed
@patkenneally patkenneally deleted the feature/allow-function-as-dispersion-variable branch November 5, 2024 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants