pyrrha package

Submodules

pyrrha.constants module

pyrrha.method module

pyrrha.cli module

pyrrha.report module

Report handling.

class pyrrha.report.Report

Bases: object

Report class.

Store and show the status of pyrrha validations.

add_error_type(method_name, pos=0)

Add error type result to the report.

Parameters
  • method_name (str) – Name of the executed method.

  • pos (int) – Position in the output tuple.

add_shape_error(method_name, pos=0)

Add shape error result to the report.

Parameters
  • method_name (str) – Name of the executed method.

  • pos (int) – Position in the output tuple.

add_success(method_name, pos=0)

Add successful result to the report.

Parameters
  • method_name (str) – Name of the executed method.

  • pos (int) – Position in the output tuple.

add_value_error(method_name, pos=0)

Add value error result to the report.

Parameters
  • method_name (str) – Name of the executed method.

  • pos (int) – Position in the output tuple.

class pyrrha.report.Status(value)

Bases: enum.Enum

Status class.

Possible statuses of a method run.

SHAPE_ERROR = 3
SUCCESS = 0
TYPE_ERROR = 1
VALUE_ERROR = 2

pyrrha.runner module

pyrrha.template_generator module

Public module.

class pyrrha.template_generator.TemplateGenerator

Bases: abc.ABC

Class to generate Template Class of Numerical Method.

class inherited from ABC

static gen_template(cls)

Generate the template according to the class received.

Parameters

cls (class) – class received.

Returns

Return type

string with template generated.

Module contents

Pyrrha.

pyrrha is a tool for helping in the developement and testing of Computational Mechanics methods.