Skip to content

Commit

Permalink
Trac #31784: Mixed form name bug for pullback bundle
Browse files Browse the repository at this point in the history
{{{
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 {} with values on the {} 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
}}}

URL: https://trac.sagemath.org/31784
Reported by: gh-mjungmath
Ticket author(s): Michael Jung
Reviewer(s): Travis Scrimshaw
  • Loading branch information
Release Manager committed Jun 19, 2021
2 parents edf5ff8 + bd5031b commit 33227c7
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 @@ -266,15 +266,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 33227c7

Please sign in to comment.