LiberTEM/LiberTEM

View on GitHub

Showing 916 of 916 total issues

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert self._slice is not None
Severity: Info
Found in src/libertem/udf/base.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert raw_damage is not None
Severity: Info
Found in src/libertem/udf/base.py by bandit

subprocess call - check for execution of untrusted input.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        rev_raw = subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=new_cwd)
Severity: Info
Found in src/libertem/versioning.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert len(files) > 0

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

                assert ndims in (2, 3)

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert self._meta is not None
Severity: Info
Found in src/libertem/io/dataset/raw_csr.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert self._partition_slice is not None
Severity: Info
Found in src/libertem/udf/base.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert np.all(np.equal(values, values[0]))
Severity: Info
Found in src/libertem/udf/stddev.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert job_id not in self.jobs
Severity: Info
Found in src/libertem/web/state.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

            assert len(correlation_result.centers) == len(selector)

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert isinstance(reporter, ProgressReporter)
Severity: Info
Found in src/libertem/common/progress.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

                assert s == cs, "invalid nav_shape #2"
Severity: Info
Found in src/libertem/common/slice.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert arr_shm.size == size, f"{arr_shm.size} != {size}"

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert self._files_sorted is not None
Severity: Info
Found in src/libertem/io/dataset/mib.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert array_backend == SCIPY_CSR or array_backend is None
Severity: Info
Found in src/libertem/io/dataset/raw_csr.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert np.max(triple.indices) < prod(sig_shape)
Severity: Info
Found in src/libertem/io/dataset/raw_csr.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

                assert valid_mask is not None
Severity: Info
Found in src/libertem/udf/base.py by bandit

Possible binding to all interfaces.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        if parts.hostname in ('0.0.0.0', '::'):
Severity: Minor
Found in src/libertem/web/server.py by bandit

subprocess call - check for execution of untrusted input.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        subprocess.check_call(command, cwd=cwd_client)
Severity: Info
Found in client.py by bandit

Starting a process with a partial executable path
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        rev_raw = subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=new_cwd)
Severity: Info
Found in hatch_build.py by bandit

subprocess call - check for execution of untrusted input.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        rev_raw = subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=new_cwd)
Severity: Info
Found in hatch_build.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert self._frame_header % itemsize == 0

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert len(mem) // itemsize // self.num_frames % (
            slicing.frame_size + (self._frame_header + self._frame_footer) // itemsize
        ) == 0, "len(mem) must fit the sig shape"

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert array_backend in (NUMPY, CUDA)
Severity: Info
Found in src/libertem/io/dataset/cached.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

            assert b.header['frame_id'] == frame_id
Severity: Info
Found in src/libertem/io/dataset/k2is.py by bandit

Consider possible security implications associated with subprocess module.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

import subprocess
Severity: Info
Found in client.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert arr.size > 0

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

            assert b.is_valid
Severity: Info
Found in src/libertem/io/dataset/k2is.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert uuid not in self.datasets
Severity: Info
Found in src/libertem/web/state.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

            assert self.window is None
Severity: Info
Found in src/libertem/viz/gms.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

    assert ref.shape == peaks.shape

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

                assert o == 0, "invalid origin"
Severity: Info
Found in src/libertem/common/slice.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert all(isinstance(s, (slice, int)) or s in (Ellipsis, None) for s in slices)

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert array_backend in (NUMPY, CUDA)
Severity: Info
Found in src/libertem/io/dataset/hdf5.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

            assert b.is_valid, "last block is not valid!"
Severity: Info
Found in src/libertem/io/dataset/k2is.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

    assert len(tiling_scheme) == 1
Severity: Info
Found in src/libertem/io/dataset/raw_csr.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

                    assert frame_slice.shape[0] == 1
                    # assert .... or True to allow disabling this check
                    # in a production run for performance
Severity: Info
Found in src/libertem/udf/base.py by bandit

Starting a process with a partial executable path
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        rev_raw = subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=new_cwd)
Severity: Info
Found in src/libertem/versioning.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

            assert self.fig is None
Severity: Info
Found in src/libertem/viz/mpl.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert len(path) == 1
Severity: Info
Found in src/libertem/web/browse.py by bandit

Consider possible security implications associated with subprocess module.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

import subprocess
Severity: Info
Found in scripts/run_mypy.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert sum(e is Ellipsis for e in slices1) == 1

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

    assert next_el is None

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert new_req_size <= self.full_size

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert self._frame_footer % itemsize == 0

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

            assert b.is_valid
Severity: Info
Found in src/libertem/io/dataset/k2is.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert len(path) == 1
Severity: Info
Found in src/libertem/web/browse.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

            assert all(b.header['frame_id'] == frame_id
                       for b in blocks)
Severity: Info
Found in src/libertem/io/dataset/k2is.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

    assert ports, 'No sockets'
Severity: Info
Found in src/libertem/web/server.py by bandit

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

            assert b.is_valid
Severity: Info
Found in src/libertem/io/dataset/k2is.py by bandit
Severity
Category