Showing 1 of 3 files from the diff.
Other files ignored by Codecov

@@ -1,9 +1,8 @@
Loading
1 1
import numpy as np
2 2
from .dimension import embed
3 3
from .rotate import rotate_2D
4 -
from .custom_exceptions import RotationAngleNotInRangeError
5 -
from .swiss_holes_helpers import in_a_hole, eliminate_overlaps, generate_swiss_holes
6 -
__all__ = ["torus", "dsphere", "sphere", "swiss_roll", "infty_sign", "d_swiss_cheese"]
4 +
5 +
__all__ = ["torus", "dsphere", "sphere", "swiss_roll", "infty_sign"]
7 6
8 7
9 8
## TODO: Make a base class that controls `ambient` and `noise`.
@@ -186,37 +185,3 @@
Loading
186 185
187 186
        X = rotate_2D(X, angle=angle)
188 187
    return X
189 -
190 -
def d_swiss_cheese(n_points=10000, n_holes=4, d=2, noise=None, seed=None, non_overlapping=False):
191 -
    """ Creates a square-formed swiss cheese manifold in d dimensions.
192 -
193 -
    Parameters
194 -
    ============
195 -
196 -
    n_points: int
197 -
        number of points in returned data set.
198 -
    n_holes: int
199 -
        number of holes in return data set.
200 -
    d: int
201 -
        number of dimensions
202 -
    """
203 -
    if seed is not None:
204 -
        np.random.seed(seed)
205 -
206 -
    points = np.random.uniform(-1,1, size=(n_points, d))
207 -
    centers, radiuses = generate_swiss_holes(n_holes, d)
208 -
    if non_overlapping is True:
209 -
        # Disregard overlaps
210 -
        centers, radiuses = eliminate_overlaps(centers, radiuses)
211 -
        while centers.shape[0] < n_holes:
212 -
            c, r = generate_swiss_holes(n_holes - centers.shape[0], d)
213 -
            centers, radiuses = eliminate_overlaps(np.concatenate([centers,c],axis=0),np.concatenate([radiuses, r],axis=0))
214 -
    points = points[np.apply_along_axis(in_a_hole,1,points,centers,radiuses),:]
215 -
    while points.shape[0] < n_points:
216 -
        ps = np.random.uniform(-1,1, size=((n_points-points.shape[0]), d))
217 -
        ps = ps[np.apply_along_axis(in_a_hole,1,ps,centers,radiuses),:]
218 -
        points = np.concatenate([points,ps],axis=0)
219 -
220 -
    if noise:
221 -
        points += noise * np.random.randn(*data.shape)
222 -
    return points
Files Coverage
tadasets 90.70%
Project Totals (7 files) 90.70%
42.2
3.4=.4
TRAVIS_OS_NAME=linux
42.1
TRAVIS_OS_NAME=linux
2.7=.7
42.4
3.6=.6
TRAVIS_OS_NAME=linux
42.3
3.5=.5
TRAVIS_OS_NAME=linux

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading