def run( output_dir: str, context_dir: str, mappings: Sequence[str], ): # Load context. if context_dir is not None: for context_path in glob("{0}/*.csv".format(context_dir)): contents = resolver.load_file(context_path) values = [[value.strip() for value in row.split(",")] for row in contents] context.add(os.path.split(context_path)[1], values[0], values[1:]) # Execute mappings. for mapping in mappings: r = resolver.Resolver(resolver.load_file(mapping)) r.resolve()
def activate(): print( 'activate called -- lower back' ) context.add( __myEnt );
def activate(): print('activate called -- quadriceps') context.add(__myEnt)
def activate(): print('activate called -- chest') context.add(__myEnt)
def activate(): print('activate called -- hamstrings') context.add(__myEnt)
def activate(): print('activate called -- flexibility') context.add(__myEnt)
def activate(): print('activate called -- shoulders') context.add(__myEnt)
def activate(): print('activate called -- neck') context.add(__myEnt)
def activate(): print( 'activate called -- cardio' ) context.add( __myEnt );
def activate(): print( 'activate called -- balance' ) context.add( __myEnt );