-
Notifications
You must be signed in to change notification settings - Fork 6
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
Rename parameters #260
Comments
In the C++ code and doxygen blocks! then it is propagated to the python and java wrapper. Same for anything that touch generated code.
In the C++ i am always using |
What if we needed to implement some function-specific naming? E.g. the function |
Quickly, no better options than doing a dirty function only in the python side (interoperability.py) On the long run, re-work the autogenerated logic and c++ code. Which I am ok to do but after finalizing the Java/paper/etc. Input and outputs are specifically handled, so difficult to change. |
Ok, I'm adding here a list of parameters that I think are inappropriate or not reasonable. The notebook which generated this list is here. Example: The old names (right, _prototype) were self-explanatory, the new names (left) not really:
My selection:
I'm afraid end-users may struggle with these kind of changes, especially as they are so many. There are also many functions with changes of this kind:
|
To be solved later with re-work of the auto-generator and input/output special case management Numerical parameter name can be changed in CLIc directly. |
after auick checkup, I think we can change the input / output parameter name without too much issue. Still need to check. |
How about input_coordinates or input_labels or input_binary_image here and there? Or after I2K? |
I will try to generate the python code to check for issue
This modification should still be done in the CLIC side. if you wanna start now you can, I can test if no issue when generating but if some problem raise I will side it for after I2K |
Ok after a quick check, simply changing the input name seems ok with the auto-generator (It seems I was not too stupid when I code it lol). If you want to change some name @haesleinhuepf go for it but I still push for some caution: focus on the important changes and not too much (we never know) |
Ok, I'm going to change the most important image parameter names in a separate PR. You can then test it before merging it. And if you merge it after i2k, that's ok, too. |
Hi @StRigaud ,
I'm just elaborating how many parameter names have been renamed between pyclesperanto_prototype and pyclesperanto. It's a very long list. If I wanted to rename a parameter, where would be a good place to do this?
I'm a bit confused, because according to the pyclesperanto CLIc wrapper lists parameter names "src0" and "src1" for add_images_weighted here. But in the python code, its "input_image0" and "input_image1". Is this mapping "src0" -> "input_image0" done automatically somewhere?
Thanks!
Cheers,
Robert
The text was updated successfully, but these errors were encountered: