MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / __str__

Method __str__

python/dolfinx/fem/function.py:580–582  ·  view source on GitHub ↗

Pretty print representation.

(self)

Source from the content-addressed store, hash-verified

578 self._cpp_object.name = name
579
580 def __str__(self) -> str:
581 """Pretty print representation."""
582 return self.name
583
584 def sub(self, i: int) -> Function[Scalar]:
585 """Return a sub-function (a view into the ``Function``).

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected