Open paskino opened 4 years ago
This is elsewhere too. ImageGeometry springs to mind.
I see the point but don't see that numiterations etc is necessarily better. One then needs to remember whether it is num, number_, numberof, NumIterations, or some other variant. "iterations" is at least short and without that ambiguity. On a balance I think I prefer the present version with just "iterations". For example writing iterations=100 seems pretty clear to me.
On Fri, 6 Nov 2020 at 17:04, Gemma Fardell notifications@github.com wrote:
This is elsewhere too. ImageGeometry springs to mind.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vais-ral/CCPi-Framework/issues/699#issuecomment-723160011, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACMDSCAZ4MZ2U4E6CCIFWUTSOQNCBANCNFSM4TMPA3VA .
To me num_iterations is pleonasm. Iterations is a very clear word.
I think we agreed to adhere to SIRF's coding conventions.
Variables, methods and members: lower case, with underscores between each word, for example
set_bin_efficiency
. . Variable for a number of something:num_var
. Number of an item in a sequence:var_num
*. Pointers, shared pointers and auto pointers should have the respective suffixes:ptr
,sptr
andaptr
.
Unfortunately, all the code doesn't respect this, yet. For relatively new code as TotalVariation
it'd be nice if it adhered to the standard.
let's put it in the documentation and developer's guide and use num_iter
and iter_num
Add to user guide
In
TotalVariation
the number of internal iteration is callediterations
, but should benum_iterations