File tree Expand file tree Collapse file tree 6 files changed +15
-14
lines changed Expand file tree Collapse file tree 6 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 66import neurometry .curvature .datasets .structures as structures
77
88os .environ ["GEOMSTATS_BACKEND" ] = "pytorch"
9- import geomstats .backend as gs # noqa: E402
9+ import geomstats .backend as gs
1010
1111
1212# TODO
Original file line number Diff line number Diff line change 1515)
1616
1717os .environ ["GEOMSTATS_BACKEND" ] = "pytorch"
18- import geomstats .backend as gs # noqa: E402
19- from geomstats .geometry .special_orthogonal import SpecialOrthogonal # noqa: E402
18+ import geomstats .backend as gs
19+ from geomstats .geometry .special_orthogonal import SpecialOrthogonal
2020
2121
2222def load_projected_images (n_scalars = 5 , n_angles = 1000 , img_size = 128 ):
Original file line number Diff line number Diff line change 1111)
1212
1313os .environ ["GEOMSTATS_BACKEND" ] = "pytorch"
14- import geomstats .backend as gs # noqa: E402
15- from geomstats .geometry .base import ImmersedSet # noqa: E402
16- from geomstats .geometry .euclidean import Euclidean # noqa: E402
17- from geomstats .geometry .pullback_metric import PullbackMetric # noqa: E402
18- from geomstats .geometry .special_orthogonal import SpecialOrthogonal # noqa: E402
14+ import geomstats .backend as gs
15+ from geomstats .geometry .base import ImmersedSet
16+ from geomstats .geometry .euclidean import Euclidean
17+ from geomstats .geometry .pullback_metric import PullbackMetric
18+ from geomstats .geometry .special_orthogonal import SpecialOrthogonal
1919
2020
2121class NeuralManifoldIntrinsic (ImmersedSet ):
Original file line number Diff line number Diff line change 33import torch
44
55os .environ ["GEOMSTATS_BACKEND" ] = "pytorch"
6- import geomstats .backend as gs # noqa: E402
7- from geomstats .geometry .euclidean import Euclidean # noqa: E402
8- from geomstats .geometry .hypersphere import Hypersphere # noqa: E402
9- from geomstats .geometry .klein_bottle import KleinBottle # noqa: E402
10- from geomstats .geometry .product_manifold import ProductManifold # noqa: E402
6+ import geomstats .backend as gs
7+ from geomstats .geometry .euclidean import Euclidean
8+ from geomstats .geometry .hypersphere import Hypersphere
9+ from geomstats .geometry .klein_bottle import KleinBottle
10+ from geomstats .geometry .product_manifold import ProductManifold
1111
1212
1313def synthetic_neural_manifold (
Original file line number Diff line number Diff line change 1313import neurometry .datasets .synthetic as synthetic
1414
1515os .environ ["GEOMSTATS_BACKEND" ] = "pytorch"
16- import geomstats .backend as gs # noqa: E402
16+ import geomstats .backend as gs
1717
1818
1919def skdim_dimension_estimation (
Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ select = [
112112]
113113ignore = [
114114 " E501" , # line too long
115+ " E402" , # ignore module level import not at top of file
115116 " PERF203" , # allow try-except within loops
116117 " RUF012" , # force typing
117118]
You can’t perform that action at this time.
0 commit comments