ericmedvet / jgea

Apache License 2.0
19 stars 11 forks source link

run fields issue in path formatting #62

Closed FrancescoRusin closed 1 month ago

FrancescoRusin commented 2 months ago

When using the record Run's mandatory fields (namely run.name, run.problem, and run.solver), as options in the paths for the ea.l.onRunDone listener, the program uses run.index instead.

ericmedvet commented 2 months ago

Can you provide here a sample exp file which causes the issue? Thanks.

FrancescoRusin commented 2 months ago

example.txt In the given example, the listener should produce files named "robotnav-maze-poly-best-trajectory-1", "robotnav-maze-poly-best-trajectory-2", and "robotnav-maze-poly-best-trajectory-3", but it instead produces files named "2-best-trajectory-1", "0-best-trajectory-3", and "1-best-trajectory-2".

ericmedvet commented 2 months ago

Ok. The bug is in the method and(String name, Type valueType, Object value) of ParamMap in jnb. I'll fix it.

ericmedvet commented 1 month ago

Fixed in bc488ab (which uses the last jnb).