Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Trac 31784: fix repr for destination maps
Browse files Browse the repository at this point in the history
  • Loading branch information
mjungmath committed May 6, 2021
1 parent c27d4d6 commit bd5031b
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/sage/manifolds/differentiable/mixed_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,15 +267,25 @@ def _repr_(self):
'Mixed differential form F on the 3-dimensional differentiable
manifold M'
Check whether :trac:`31784` is fixed::
sage: E3 = EuclideanSpace(3)
sage: S2 = E3.sphere()
sage: iota = S2.embedding()
sage: Omega = S2.mixed_form_algebra(dest_map=iota)
sage: Omega(1)
Mixed differential form one along the 2-sphere S^2 of radius 1
smoothly embedded in the Euclidean space E^3 with values on the
Euclidean space E^3 via the map iota
"""
desc = "Mixed differential form "
if self._name is not None:
desc += self._name + " "
if self._dest_map is self._domain.identity_map():
desc += "on the {}".format(self._domain)
desc += f"on the {self._domain}"
else:
desc += "along the {} with values on the {} "
desc += desc.format(self._domain, self._ambient_domain)
desc += f"along the {self._domain} with values on the {self._ambient_domain} "
if self._dest_map._name is None:
dm_name = "unnamed map"
else:
Expand Down

0 comments on commit bd5031b

Please sign in to comment.