PYME.recipes.runRecipe module

Created on Fri May 8 10:07:57 2015

@author: david

PYME.recipes.runRecipe.main()
PYME.recipes.runRecipe.runRecipe(recipe, inputs, outputs, context={})

Load inputs and run recipe, saving outputs.

Parameters:

- recipe : an instance of PYME.recipes.filters.ModuleCollection

  • inputs : a dictionary mapping recipe input names to filenames. These

    are loaded and inserted into the namespace before running the recipe.

  • outputs : a dictionary mapping recipe output names to filenames. The

    corresponding members of the namespace are saved to disk following execution of the recipe.

PYME.recipes.runRecipe.saveDataFrame(output, filename)

Saves a pandas dataframe, inferring the destination type based on extension

PYME.recipes.runRecipe.saveOutput(output, filename)
PYME.recipes.runRecipe.saveTabular(output, filename)

Saves a pandas dataframe, inferring the destination type based on extension