From 6bc875187928c9843566c6d93ef7ecc87da764d5 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Sun, 18 Oct 2020 23:17:00 +0200 Subject: [PATCH] Change the type of parameters for Etesian from Percentage to Double. * Change: In CRL/etc/common/etesian.py, use double parameters instead of percentages to simplify. For space margin and form factor. This need the rewrite of coriolis2/settings.py in alliance-check-toolkit. --- crlcore/etc/common/etesian.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/crlcore/etc/common/etesian.py b/crlcore/etc/common/etesian.py index 9781fb21..c1378010 100644 --- a/crlcore/etc/common/etesian.py +++ b/crlcore/etc/common/etesian.py @@ -16,12 +16,10 @@ import Cfg -param = Cfg.getParamPercentage( 'etesian.aspectRatio' ) -param.setPercentage( 100 ) -param.setMin ( 10 ) -param.setMax ( 1000 ) +param = Cfg.getParamDouble( 'etesian.aspectRatio' ) +param.setDouble( 1.0 ) -Cfg.getParamPercentage( 'etesian.spaceMargin' ).setPercentage( 5 ) +Cfg.getParamDouble ( 'etesian.spaceMargin' ).setPercentage( 0.05 ) Cfg.getParamBool ( 'etesian.uniformDensity' ).setBool ( False ) Cfg.getParamBool ( 'etesian.routingDriven' ).setBool ( False ) Cfg.getParamString ( 'etesian.feedNames' ).setString ( 'tie_x0,rowend_x0' )