Skip to content
Snippets Groups Projects
Commit c7d23681 authored by istkabra's avatar istkabra
Browse files

* Fixed bug when jobName is left empty for timestamp

* Each job now gets his own image series folder
parent f1c7ac08
No related branches found
No related tags found
No related merge requests found
...@@ -150,9 +150,8 @@ public class Config { ...@@ -150,9 +150,8 @@ public class Config {
crossoverMultiplier = Double.parseDouble(this.properties.getProperty("crossoverMultiplier")); crossoverMultiplier = Double.parseDouble(this.properties.getProperty("crossoverMultiplier"));
// Output settings // Output settings
if(properties.containsKey("jobName")){ jobName = this.properties.getProperty("jobName");
jobName = this.properties.getProperty("jobName"); if(jobName.equals("")) {
}else{
SimpleDateFormat formatter = new SimpleDateFormat("ddMMyyyyHHmmss"); SimpleDateFormat formatter = new SimpleDateFormat("ddMMyyyyHHmmss");
Date date = new Date(); Date date = new Date();
jobName = formatter.format(date); jobName = formatter.format(date);
...@@ -275,7 +274,7 @@ public class Config { ...@@ -275,7 +274,7 @@ public class Config {
} }
public String getImageSequenceDirectory() { public String getImageSequenceDirectory() {
return imageSequenceDirectory; return imageSequenceDirectory + "/" + jobName;
} }
public String getVideoDirectory() { public String getVideoDirectory() {
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
# Size of the population in one generation # Size of the population in one generation
populationSize = 100 populationSize = 100
# Number of generations to run the algorithm for # Number of generations to run the algorithm for
noGenerations = 600 noGenerations = 20
# Type of population initialization [curl | straight | random] # Type of population initialization [curl | straight | random]
initializationMethod = random initializationMethod = random
# Type of selection that should be used [proportional | tournament | onlybest] # Type of selection that should be used [proportional | tournament | onlybest]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment