-
Notifications
You must be signed in to change notification settings - Fork 45
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
Include VIROCON contour methods? #201
Comments
Sounds good to reach out. Looking at the package they have an MIT license which is permissive with respect to basically everything.
Are you thinking of making it a dependency or copying a specific method? |
Yes, but since this is a past collaborator @ryancoe wants to make sure (give them a heads up). I was thinking of making a dependency, but I have not looked at the code in detail yet. |
@cmichelenstrofer - can you illustrate what this would look like? My understanding is something like from virocon import contours
def mhkit_mapping_of_contour1(args)
return contours.contour1(args) Is that right? And the benefit would be that we would also add documentation for each of these in MHKiT (instead of referring to ViroCon documentation)? |
The benefit would be to have all our contour methods we use in the same package (MHKiT) instead of across packages (MHKiT, WDRT, ViroCon, etc). Even if the actual code is in another package we will have the full list in MHKiT and have Docstrings for it. The QC module in MHKiT similarly uses other dependencies, it is just a wrapper. |
I haven't looked at their code but there might need to be some modification of the args so that the MHKiT args are consistent with the other methods in MHKiT (that's another potential benefit). It would be something like from virocon
def environmental_contour(method, args...):
...
if method=="OMAE":
virocon_args = .... # some function of the args
contour = virocon.contours.OMAE(virocon_args)
...
return |
@ryancoe we have one single |
that's helpful, thanks. If you have a moment, take a look at how |
They use a class structure like we did in WDRT. It is well organized and they have several methods we do not. It is a nice package. @ssolson and @akeeste something we have done in WecOptTool is try to use as much as possible existing packages, so that means we have had to make contributions to other packages to get what we need. But then the maintenance is not on us and there is no duplication of capabilities. If in the future you want to move in that direction for MHKiT,
For WecOptTool we have been using @ryancoe for our immediate needs I think going ahead and wrapping those functions like we discussed above is the best option. |
The aspect of the |
I was just looking at that. It's pretty cool! For the same model (e.g. OMAE2020) you can choose different methods: IFORM, ISORM, Direct, Highest Density. I really need to understand this stuff better tbh. |
@ryancoe That separation makes it different enough from MHKiT. It would need more thought on how to incorporate them in here. I say let's table this then. @Graham-EGI For the DLC we can simply use the one method from virocon that we want directly. @ssolson @akeeste up to you if you want to incorporate these methods in the future and whether to keep this issue open. |
|
I will look at possibly including the contour methods from the Virocon package.
E.g. this one. @ryancoe will reach out to them to make sure it is OK.
The text was updated successfully, but these errors were encountered: