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

Implement if/then logic within QueenBee functions #105

Open
chriswmackey opened this issue Jul 3, 2020 · 1 comment
Open

Implement if/then logic within QueenBee functions #105

chriswmackey opened this issue Jul 3, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@chriswmackey
Copy link
Contributor

After my initial development of queenbee functions and recipes, I think this was my biggest pain point.

To give a specific painful example, the current philosophy of "create a new function for every boolean flag you want to turn on/off on a command" is causing me to fall far short of the re-usability that we are hoping queenbee will give us. I already have 5 different simulation parameter commands in honeybee-energy and having to make 2 variants of each of them to accommodate one boolean option is already 10 functions. God help us all if I add another boolean flag on these simulation parameter commands and we will have 20 simulation parameter queenbee functions. Simply instituting an if/then logic will allow us to expose these boolean flags on the function rather than having to double or quadruple the number of functions.

Beyond this, there's potentially a lot more re-usability that we can build into queenbee functions if we can wrap multiple commands depending upon the input

@chriswmackey chriswmackey added the enhancement New feature or request label Jul 3, 2020
@mostaphaRoudsari
Copy link
Member

We are holding off on this issue for now until Argo provides better support for conditionals with artifacts.

Meanwhile the logic can be handled inside the functions itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants