dont sys.exit()
parent
ae9e298a8b
commit
2a69646882
|
@ -174,12 +174,12 @@ class Base_GP(object):
|
||||||
if self.kernel == 'p': # terminate here for Play mode
|
if self.kernel == 'p': # terminate here for Play mode
|
||||||
self.fx_display_tree(self.tree) # print the current Tree
|
self.fx_display_tree(self.tree) # print the current Tree
|
||||||
self.fx_data_tree_write(self.population_a, 'a') # save this one Tree to disk
|
self.fx_data_tree_write(self.population_a, 'a') # save this one Tree to disk
|
||||||
sys.exit()
|
#sys.exit()
|
||||||
|
|
||||||
elif self.gen_max == 1: # terminate here if constructing just one generation
|
elif self.gen_max == 1: # terminate here if constructing just one generation
|
||||||
self.fx_data_tree_write(self.population_a, 'a') # save this single population to disk
|
self.fx_data_tree_write(self.population_a, 'a') # save this single population to disk
|
||||||
print ('\n We have constructed a single, stochastic population of', self.tree_pop_max,'Trees, and saved to disk')
|
print ('\n We have constructed a single, stochastic population of', self.tree_pop_max,'Trees, and saved to disk')
|
||||||
sys.exit()
|
#sys.exit()
|
||||||
|
|
||||||
else: print ('\n We have constructed the first, stochastic population of', self.tree_pop_max,'Trees')
|
else: print ('\n We have constructed the first, stochastic population of', self.tree_pop_max,'Trees')
|
||||||
|
|
||||||
|
@ -342,7 +342,7 @@ class Base_GP(object):
|
||||||
print ('\n\033[3m "It is not the strongest of the species that survive, nor the most intelligent,\033[0;0m')
|
print ('\n\033[3m "It is not the strongest of the species that survive, nor the most intelligent,\033[0;0m')
|
||||||
print ('\033[3m but the one most responsive to change."\033[0;0m --Charles Darwin\n')
|
print ('\033[3m but the one most responsive to change."\033[0;0m --Charles Darwin\n')
|
||||||
print ('\033[3m Congrats!\033[0;0m Your Karoo GP run is complete.\n')
|
print ('\033[3m Congrats!\033[0;0m Your Karoo GP run is complete.\n')
|
||||||
sys.exit()
|
#sys.exit()
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue