Skip to content

Commit ec3fb7a

Browse files
committed
Remove @Property usage + styles
1 parent 4d2c72c commit ec3fb7a

File tree

6 files changed

+90
-109
lines changed

6 files changed

+90
-109
lines changed

src/sage/stats/all.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from .r import ttest
33
from .basic_stats import (mean, mode, std, variance, median, moving_average)
44
from .hmm import all as hmm
5-
from .distributions import (DGI, DGL, DGP)
5+
from .distributions.all import *
66

77
# We lazy_import the following modules since they import numpy which
88
# slows down sage startup

src/sage/stats/distributions/__init__.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/sage/stats/distributions/all.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# We lazy_import the following modules since they import numpy which
2+
# slows down sage startup
3+
from sage.misc.lazy_import import lazy_import
4+
lazy_import("sage.stats.distributions.discrete_gaussian_integer", ["DiscreteGaussianDistributionIntegerSampler"])
5+
lazy_import("sage.stats.distributions.discrete_gaussian_lattice", ["DiscreteGaussianDistributionLatticeSampler"])
6+
lazy_import("sage.stats.distributions.discrete_gaussian_polynomial", ["DiscreteGaussianDistributionPolynomialSampler"])

src/sage/stats/distributions/discrete_gaussian_integer.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,4 +496,3 @@ cdef class DiscreteGaussianDistributionIntegerSampler(SageObject):
496496
return f"Discrete Gaussian sampler over the Integers with sigma = {self.sigma:.6f} and c = {self.c:.6f}"
497497

498498

499-
DGI = DiscreteGaussianDistributionIntegerSampler

0 commit comments

Comments
 (0)