-
Notifications
You must be signed in to change notification settings - Fork 77
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
Get/Set Storage Nodes Parameters #192
base: develop
Are you sure you want to change the base?
Conversation
A little modification which seeks to allow to get/set parameters of a storage node.
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.
@joaolponciano, please migrate all this code to the toolkitAPI.c
module. It appears that you have a syntax error somewhere as well. In response to your comment on Units, look at how other getter/setters work. When you set a value, the units are converted on the way in. when you get a value, the units are converted on the way out. Make sure you multiple.divide correctly. I also believe that there are three parameters that make up a functional storage curve (you seem to only have aCoeff
). Can you check that?
@joaolponciano, also please sign the contributors license agreement HERE |
There are three parameters in a storage function Area = A + B^C though you can get by just using A. |
@bemcdonnell, thanks again for the help. I checked the points you told me to, and corrected them, thanks. I'm just checking the syntax yet. To migrate the code for toolkitAPI.c should I close this pull request and create another one or it's possible to put the code here? |
@joaolponciano, just move the code (please put your functions around similar functions for nodes), delete the toolkitAPImodified.c file, and make another commit with these changes. There are going to be lots of additional commits that will ride inside your PR. Once we agree on the function "themes", you'll need to add unit tests as well so we can always be sure this code is working. You'll also need to add your function declarations to Once we are all satisfied with the implementation and tests, we will approve the PR and your code will come into SWMM. Also, at this point, go ahead and append your name to the AUTHORS file so we can more easily associate your changes with you. |
@bemcdonnell, I think the last commit I uploaded meets the first requests you did. Should I add the function declarations to /include/toolkitapi.h already? Thanks for all your help. |
@joaolponciano You code is very far out of date based on where the OWA |
@bemcdonnell, Should I rebase them to develop? And I will check what is failing in Appveyor. Thanks. |
@joaolponciano, Sorry that things got really busy 5 years ago! @karosc, I am going to bring this PR back to life. It is a really great contribution! |
Closes #189
Hello Bryant,
Here are the modifications we was talking about. I'm not so sure about the units.
As I told you before this is the first time I am working in GitHub, so I might have made some mistakes, I'm sorry about them. Thanks for your help and attention.
Thanks,
João.