Uh oh!
There was an error while loading. Please reload this page.
Adds wrapper for python and dylib custom function - #157
Conversation
9bea78a to
fbfe218Comparefbfe218 to
9b24061CompareStephenNneji
commented
Aug 25, 2023
@arwelHughes have a look (you can run testCustomLanguages to try it out). I have question about customXY we can discuss later |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| problem.setCustomFile(1,'language','python'); | ||
| wrapper = pythonWrapper('customBilayer.py', 'customBilayer'); | ||
| problem.setCustomFile(1,'filename', wrapper.getHandle()); | ||
| problem.setCustomFile(1,'language','matlab'); |
There was a problem hiding this comment.
May need to consider changes to the custom file class in this case - should python be removed from the supported languages? do we need to change the fields that are currently defined?
There was a problem hiding this comment.
If the wrapper is python, but the specified language is matlab, that definitely isn't ideal.
There was a problem hiding this comment.
I plan to remove the language option completely when its done
Uh oh!
There was an error while loading. Please reload this page.
| [thisContrastLayers,allRoughs(i)] = callCppFunc(params,bulkIn,bulkOut,i,thisFile,thisFile); | ||
| case 'python' | ||
| [thisContrastLayers,allRoughs(i)] = pythonCustomFunctionWrapper(thisFile,params,bulkIn,bulkOut,i,numberOfContrasts); | ||
| [thisContrastLayers, allRoughs(i)] = callCppFunc(params, bulkIn, bulkOut, i, -1, thisFile); |
There was a problem hiding this comment.
If this routine cover both python and C++, may be worth considering renaming it.
There was a problem hiding this comment.
callCppFunc only handles C++ while the callMatlabCustomFunction only runs matlab (the wrapper then calls python)
e3cea65 to
501c6faCompare501c6fa to
fb97f8fCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This adds wrappers for python and dynamic library custom layer functions. The customFile interface will remain unchanged but the wrappers are used in the toStruct function.