gemseo / post

post_factory module

A factory to execute post processings from their class name

class gemseo.post.post_factory.PostFactory[source]

Bases: object

Post processing factory to run optimization post processings Lists available post processings on the current configuration, executes them on demand.

Works both from memory, from a ran optimization problem, and from disk, from a serialized optimization problem.

Initializes the factory: scans the directories to search for subclasses of OptPostProcessor. Searches in “GEMSEO_PATH” and gemseo.post

create(opt_problem, post_name)[source]

Factory method to create a post processing subclass from post_name which is a class name

Parameters
  • opt_problem – the optimization problem on which to run the post processing

  • post_name – the post processing name

execute(opt_problem, post_name, **options)[source]

Finds the appropriate library and executes the post processing on the problem

Parameters
  • opt_problem – the optimization problem on which to run the post procesing

  • post_name – the post processing name

is_available(name)[source]

Checks the availability of a post processing name

Parameters

name – the name of the post processing

Returns

True if the post step is installed

list_generated_plots()[source]

Lists the generated plot files

property posts

Lists the available post processings

Returns

the list of methods