revrand icon indicating copy to clipboard operation
revrand copied to clipboard

Publish Nlopt wrappers of old revrand project as separate package

Open dschmitz89 opened this issue 3 years ago • 4 comments

Hey guys,

searching for nlopt Python tutorials I found this wrapper which at some time belonged to the revrand project apparently: https://www.earthbyte.org/webdav/ftp/Data_Collections/Dutkiewicz_etal_2016_G3/revrand-master/revrand/optimize/nlopt_wrap.py

In a nutshell, the wrapper enables to call nlopt algorithms with the scipy.optimize.minimize API that has become the de facto standard in Python. It makes it a lot easier for everyone familiar with this API to use nlopt.

I find that code very useful and would like to make it more accessible by a dedicated repo/package and a few minor extensions. As I am not that familiar with licensing, I wanted to ask you what the process would have to be. The code seems to be Apache licensed, so in my understanding it should be possible given the reference to the authors.

I hope this is the right place to ask!

dschmitz89 avatar Mar 19 '21 22:03 dschmitz89

Hi @dschmitz89 !

I'm really glad you found this wrapper useful! If memory serves, it was mainly the effort of @ltiao .

Yeah it looks like the version of revrand in that link is still Apache 2.0 - so I don't think it would be an issue with the copyright owners (CSIRO now).

I think as long as you follow the terms of the license what you propose is fine :-)

dsteinberg avatar Mar 19 '21 23:03 dsteinberg

Thank you, Daniel, will give you guys a heads up here when I publish on github!

dschmitz89 avatar Mar 20 '21 07:03 dschmitz89

Hey guys,

my package is available on Github now under Apache 2 license: https://github.com/dschmitz89/simplenlopt Docu: https://simplenlopt.readthedocs.io/en/latest/index.html

Some parts still need some polishing, especially a PyPI build.

Let me know if the license needs to be more clear or if you have any other suggestions to improve it further :)

dschmitz89 avatar Jun 28 '21 19:06 dschmitz89

Hey @dschmitz89, this looks great! I'll try to incorporate it in my upcoming project and let you know how it goes :)

ltiao avatar Jun 28 '21 20:06 ltiao