From 3b86c3a08584b3d5829d21ba27a14d0a3ac0c173 Mon Sep 17 00:00:00 2001 From: chipdelmal Date: Tue, 24 May 2022 12:31:58 -0700 Subject: [PATCH] Minor fix to STP example --- MGSurvE/demos/Paper/STP.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MGSurvE/demos/Paper/STP.py b/MGSurvE/demos/Paper/STP.py index 6b537f27..4ca3e66c 100644 --- a/MGSurvE/demos/Paper/STP.py +++ b/MGSurvE/demos/Paper/STP.py @@ -17,7 +17,7 @@ FXD_TRPS = True else: FXD_TRPS = (argv[1] == 'True') -(TRPS_NUM, GENS) = (6, 3000) +(TRPS_NUM, GENS) = (6, 500) DIAG_VAL = 0.1 ############################################################################### # Debugging fixed traps at land masses @@ -194,7 +194,7 @@ bestChromosome = hof[0] bestTraps = np.reshape(bestChromosome, (-1, 2)) lnd.updateTrapsCoords(bestTraps) -srv.dumpLandscape(lnd, OUT_PTH, '{}_{:02d}_TRP'.format(ID, TRPS_NUM)) +srv.dumpLandscape(lnd, OUT_PTH, '{}_{:02d}_TRP'.format(ID, TRPS_NUM), fExt='pkl') dta = pd.DataFrame(logbook) srv.exportLog(logbook, OUT_PTH, '{}_{:02d}_LOG'.format(ID, TRPS_NUM)) ###############################################################################