Conversation
| RAT.utils.plotting.plot_ref_sld(project, results) | ||
|
|
||
| # C++ | ||
| project.custom_files.set_fields(0, filename='custom_bilayer.dll', language='cpp') |
There was a problem hiding this comment.
When I change the filename to customBilayer.dll the function does not update it is still custom_bilayer
There was a problem hiding this comment.
I think you'll need to recompile. I'll add the README.md from the matlab which contains the compilation instructions.
There was a problem hiding this comment.
The compilation instructions are in the docs, no need to copy them over. What I am taking about is on the Matlab side if I do
problem.addCustomFile('DSPC Model','customBilayer.m','matlab',pwd);
The function is set to customBilayer but then if I do
problem.setCustomFile(1,'filename', 'custom_bilayer.py', 'path', path);
the function is set to 'custom_bilayer' unless I explicitly specified a function name
On the python side, the function stays the same after the filename is changed
There was a problem hiding this comment.
Ok, I've set it up to have the function name mapped to the filename for matlab, and free otherwise. Let me know what you think of this behaviour.
StephenNneji
left a comment
There was a problem hiding this comment.
Good Job, Thanks for your hard work on this one amidst the confusion.
There was a problem hiding this comment.
Please add an __init__.py file to this folder also, otherwise it won't be copied when the user installs.
There was a problem hiding this comment.
Does the "tests/test_data" directory need one as well then?
There was a problem hiding this comment.
Not needed, at the moment, we don't copy tests for install
No description provided.