LiberTEM/LiberTEM

View on GitHub

Showing 902 of 903 total issues

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

        assert len(indices) == len(self)

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

                assert x > 0, \
                    "invalid shape: {!r} while subslicing {!r} with {!r} (origin={!r})".format(
                        new_shape, self.shape, shape, 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

                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

            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

            assert len(tileshape) == self.sig_dims + 1
Severity: Info
Found in src/libertem/io/dataset/memory.py by bandit

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

        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

        assert self._tiling_scheme 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

        assert raw_damage 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

            assert self.axes 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

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

subprocess call - check for execution of untrusted input.
Open

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

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

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

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

        assert new_req_size <= self.full_size

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

        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

            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

            assert b.header['frame_id'] == frame_id
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

    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

                assert partition.slice.adjust_for_roi(roi) == tile.tile_slice
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

            assert frame.getformat() == 'coo'
Severity: Info
Found in src/libertem/udf/masks.py by bandit

Possible binding to all interfaces.
Open

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