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

Commit

Permalink
Eliminate use of MultiCoordFunction._functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Jun 14, 2021
1 parent 27e3889 commit 3c36bd2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sage/manifolds/continuous_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -2014,7 +2014,7 @@ def __invert__(self):
# New symbolic variables (different from chart2._xx to allow for a
# correct solution even when chart2 = chart1):
x2 = [SR.var('xxxx' + str(i)) for i in range(n2)]
equations = [x2[i] == coord_map._functions[i].expr()
equations = [x2[i] == coord_map[i].expr()
for i in range(n2)]
solutions = solve(equations, chart1._xx, solution_dict=True)
if not solutions:
Expand Down
2 changes: 1 addition & 1 deletion src/sage/manifolds/differentiable/curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ def __call__(self, t, simplify=True):
else:
chart_pair = next(iter(self._coord_expression.keys()))
# a chart is picked at random
coord_functions = self._coord_expression[chart_pair]._functions
coord_functions = self._coord_expression[chart_pair]
n = codom._dim
dict_subs = {canon_coord: t}
coords = [coord_functions[i].expr().substitute(dict_subs)
Expand Down
2 changes: 1 addition & 1 deletion src/sage/manifolds/scalarfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -1774,7 +1774,7 @@ def coord_function(self, chart=None, from_chart=None):
"compute the expression in the {}".format(chart))
change = self._domain._coord_changes[(chart, from_chart)]
# old coordinates expressed in terms of the new ones:
coords = [ change._transf._functions[i].expr()
coords = [ change._transf[i].expr()
for i in range(self._manifold.dim()) ]
new_expr = self._express[from_chart](*coords)
self._express[chart] = chart.function(new_expr)
Expand Down

0 comments on commit 3c36bd2

Please sign in to comment.