padne.cli

Functions

setup_logging(→ None)

Configures basic logging for the application.

collect_warnings()

Context manager to collect warnings.

add_mesher_args(→ None)

Add mesher configuration arguments to a parser.

mesher_config_from_args(→ padne.mesh.Mesher.Config)

Construct a Mesher.Config from parsed arguments.

parse_args(→ argparse.Namespace)

handle_errors(func)

Decorator for handling errors with enhanced display.

do_gui(→ int)

do_solve(→ None)

do_show(→ int)

do_paraview(→ None)

main(→ None)

Module Contents

padne.cli.setup_logging(debug_mode: bool) None[source]

Configures basic logging for the application.

padne.cli.collect_warnings()[source]

Context manager to collect warnings.

padne.cli.add_mesher_args(parser: argparse.ArgumentParser) None[source]

Add mesher configuration arguments to a parser.

padne.cli.mesher_config_from_args(args: argparse.Namespace) padne.mesh.Mesher.Config[source]

Construct a Mesher.Config from parsed arguments.

padne.cli.parse_args() argparse.Namespace[source]
padne.cli.handle_errors(func)[source]

Decorator for handling errors with enhanced display.

padne.cli.do_gui(args: argparse.Namespace) int[source]
padne.cli.do_solve(args: argparse.Namespace) None[source]
padne.cli.do_show(args: argparse.Namespace) int[source]
padne.cli.do_paraview(args: argparse.Namespace) None[source]
padne.cli.main() None[source]