dont sys.exit()

jupyter
ml server 2020-02-21 22:13:51 -07:00
parent ae9e298a8b
commit 2a69646882
1 changed files with 3 additions and 3 deletions

View File

@ -174,12 +174,12 @@ class Base_GP(object):
if self.kernel == 'p': # terminate here for Play mode
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
sys.exit()
#sys.exit()
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
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')
@ -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 ('\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')
sys.exit()
#sys.exit()
return