kjappelbaum/pyepal

View on GitHub

Showing 103 of 103 total issues

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

        assert len(indices) == len(measurements)
Severity: Info
Found in src/pyepal/pal/pal_base.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

        assert isinstance(self.restarts, int), "the restarts keyword must be of type int"
Severity: Info
Found in src/pyepal/pal/pal_gpy.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert palinstance.number_design_points == len(
        y
    ), "The number of points in the design space must equal the number of measurements"
Severity: Info
Found in src/pyepal/pal/utils.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert (
        len(X) > n_samples
    ), "The numbers of points that shall be selected (n_samples),\
         needs to be smaller than the length of the feature matrix (X)"

Severity: Info
Found in src/pyepal/pal/utils.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert isinstance(y, np.ndarray), "Input array y must be a numpy array"
Severity: Info
Found in src/pyepal/plotting/__init__.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert (
        len(y) == palinstance.number_design_points
    ), "Length of y must equal the size of the design space"
Severity: Info
Found in src/pyepal/plotting/__init__.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

        assert X_design.ndim == 2, "You must provide a two-dimensional numpy array"

Severity: Info
Found in src/pyepal/pal/pal_base.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert n_samples > 0 and isinstance(
        n_samples, int
    ), "The number of points that shall be selected (n_samples)\
         needs to be an integer greater than 0"

Severity: Info
Found in src/pyepal/pal/utils.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

            assert node is not None
Severity: Info
Found in src/pyepal/pal/_hypervolume.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert isinstance(y, np.ndarray), "Input array y must be a numpy array"
Severity: Info
Found in src/pyepal/plotting/__init__.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert y.ndim == 2, "y must be a two-dimensional numpy array"
Severity: Info
Found in src/pyepal/plotting/__init__.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

        assert (
            len(labels) == num_targets
        ), "If labels are provided the length of the labels list \
            must equal the number of targets"
Severity: Info
Found in src/pyepal/plotting/__init__.py by bandit

Starting a process with a partial executable path
Open

            ret = check_output(  # noqa: S603,S607
                ["git", "rev-parse", "HEAD"],
                cwd=os.path.dirname(__file__),
                stderr=devnull,
Severity: Info
Found in src/pyepal/version.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert isinstance(
        model, GPy.models.GPRegression
    ), "This wrapper function is written for GPy.models.GPRegression"
Severity: Info
Found in src/pyepal/models/gpr.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert isinstance(pareto_optimal, np.ndarray), "The arguments must be numpy arrays"
Severity: Info
Found in src/pyepal/plotting/__init__.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert isinstance(non_pareto_points, np.ndarray), "The arguments must be numpy arrays"
Severity: Info
Found in src/pyepal/plotting/__init__.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert (
        len(y) == palinstance.number_design_points
    ), "Length of y must equal the size of the design space"

Severity: Info
Found in src/pyepal/plotting/__init__.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert (
        y.shape[1] == palinstance.ndim
    ), "y needs to be a two-dimensional array which column number \
        equals the number of targets"
Severity: Info
Found in src/pyepal/plotting/__init__.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

    assert len(activations) == len(
        hidden_layers
    ), "The number of hidden layers should match the number of nonlinearities"
Severity: Info
Found in src/pyepal/models/nt.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open

        assert isinstance(self.parallel, bool), "the parallel keyword must be of type bool"
Severity
Category
Status
Source
Language