You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Replace function printing with custom Inspector Tabs #334
The newer versions of Pharo changed the way blocks are printed, and this change broke the print tests for FunctionFit. Trying to fix those tests was unnecessary difficult.
The printing of functions display so much information that it feels more appropriate and readable to display them in customised inspector tabs rather than in a single very long string.
For example, when printing this PMGeneralFunctionFit:
f := [ :x:a:b | (a * x) sin / (b + x squared) ].
col := (-4to:4by:0.1) collect: [ :i | i @ (f cull: i cull:0.1cull:0.4) ].
fit :=PMGeneralFunctionFitfunction: f
data: col
minimumValues:0maximumValues:5.
fit manager randomGenerator: (Randomseed:42).
the result is:
'a PMGeneralFunctionFit(PMAnotherGeneticOptimizer( function: [ :x :a :b | (a * x) sin / (b + x squared) ] manager: PMAnotherChromosomeManager( popSize: 50 origin: #(0 0) range: #(5 5) hammersley true MutRate: 0.4 CORate: 0.15 LCRate: 0.29 EIRRate: 0.16) maxIterations: 170 rangeScale: true removeLast: false steadyState: true statistics: false result: nil) with data of size: 81)'
changed the title [-]The printing of functions introduces unnecessary complexity[/-][+]Replace function printing with custom Inspector Tabs[/+]on Mar 30, 2026
Activity
[-]The printing of functions introduces unnecessary complexity[/-][+]Replace function printing with custom Inspector Tabs[/+]