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

Commit

Permalink
Lazy import of FiniteRankFreeModule + import of Chart at the module l…
Browse files Browse the repository at this point in the history
…evel in free_module_tensor.py
  • Loading branch information
egourgoulhon committed Apr 15, 2019
1 parent 5106067 commit 5536b94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/sage/tensor/modules/all.py
@@ -1,2 +1,3 @@
from __future__ import absolute_import
from .finite_rank_free_module import FiniteRankFreeModule
from sage.misc.lazy_import import lazy_import
lazy_import('sage.tensor.modules.finite_rank_free_module',
'FiniteRankFreeModule')
2 changes: 1 addition & 1 deletion src/sage/tensor/modules/free_module_tensor.py
Expand Up @@ -199,6 +199,7 @@ class being:
from sage.tensor.modules.tensor_with_indices import TensorWithIndices
from sage.parallel.decorate import parallel
from sage.parallel.parallelism import Parallelism
from sage.manifolds.chart import Chart


class FreeModuleTensor(ModuleElement):
Expand Down Expand Up @@ -573,7 +574,6 @@ def _preparse_display(self, basis=None, format_spec=None):
(Basis (e_0,e_1) on the Rank-2 free module M over the Integer Ring, 10)
"""
from sage.manifolds.chart import Chart
if basis is None:
basis = self._fmodule._def_basis
elif isinstance(basis, Chart):
Expand Down

0 comments on commit 5536b94

Please sign in to comment.