Skip to content

Commit

Permalink
Minor fix to STP example
Browse files Browse the repository at this point in the history
  • Loading branch information
Chipdelmal committed May 24, 2022
1 parent a92f388 commit 3b86c3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MGSurvE/demos/Paper/STP.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))
###############################################################################
Expand Down

0 comments on commit 3b86c3a

Please sign in to comment.