33from functools import partial
44import textwrap
55
6- from paths_cli .wizard .cvs import cvs
7- from paths_cli .wizard .engines import engines
8- from paths_cli .wizard .volumes import volumes
9- from paths_cli .wizard .tps import (
10- flex_length_tps_network , fixed_length_tps_network , tps_scheme
11- )
126from paths_cli .wizard .tools import yes_no , a_an
137from paths_cli .wizard .core import get_object
148from paths_cli .wizard .errors import (
@@ -247,6 +241,9 @@ def _ask_do_another(self, obj_type):
247241 return do_another
248242
249243 def run_wizard (self ):
244+ self .start ("Hi! I'm the OpenPathSampling Wizard." )
245+ # TODO: next line is only temporary
246+ self .say ("Today I'll help you set up a 2-state TPS simulation." )
250247 self ._patch () # try to hide the slowness of our first import
251248 for step in self .steps :
252249 req = step .store_name , step .minimum , step .maximum
@@ -269,45 +266,9 @@ def run_wizard(self):
269266 storage = self .get_storage ()
270267 self .save_to_file (storage )
271268
272- from collections import namedtuple
273- WizardStep = namedtuple ('WizardStep' , ['func' , 'display_name' , 'store_name' ,
274- 'minimum' , 'maximum' ])
275-
276- SINGLE_ENGINE_STEP = WizardStep (func = engines ,
277- display_name = "engine" ,
278- store_name = "engines" ,
279- minimum = 1 ,
280- maximum = 1 )
281-
282- CVS_STEP = WizardStep (func = cvs ,
283- display_name = "CV" ,
284- store_name = 'cvs' ,
285- minimum = 1 ,
286- maximum = float ('inf' ))
287-
288- MULTIPLE_STATES_STEP = WizardStep (func = partial (volumes , as_state = True ),
289- display_name = "state" ,
290- store_name = "states" ,
291- minimum = 2 ,
292- maximum = float ('inf' ))
293-
294- FLEX_LENGTH_TPS_WIZARD = Wizard ([
295- SINGLE_ENGINE_STEP ,
296- CVS_STEP ,
297- MULTIPLE_STATES_STEP ,
298- WizardStep (func = flex_length_tps_network ,
299- display_name = "network" ,
300- store_name = "networks" ,
301- minimum = 1 ,
302- maximum = 1 ),
303- WizardStep (func = tps_scheme ,
304- display_name = "move scheme" ,
305- store_name = "schemes" ,
306- minimum = 1 ,
307- maximum = 1 ),
308- ])
309269
310270# FIXED_LENGTH_TPS_WIZARD
271+ # MULTIPLE_STATE_TPS_WIZARD
311272# TWO_STATE_TIS_WIZARD
312273# MULTIPLE_STATE_TIS_WIZARD
313274# MULTIPLE_INTERFACE_SET_TIS_WIZARD
0 commit comments