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(factors) == len(base_shape)

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

        assert all(ts <= ps for (ts, ps) in zip(tileshape_nd, self.slice_nd.shape))

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

            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.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 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

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

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 self.shape.nav.dims == 1
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 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

        assert len(tiling_scheme) == 1, "incompatible tiling scheme! (%r)" % (tiling_scheme)

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

        assert self._npy_info is not None
Severity: Info
Found in src/libertem/io/dataset/npy.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

Consider possible security implications associated with subprocess module.
Open

import subprocess
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(indices) == len(self)

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

        assert len(ref) == len(weighs)

Consider possible security implications associated with subprocess module.
Open

import subprocess


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

        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

        assert payload_shm.nbytes == size, f"{payload_shm.nbytes} != {size}"

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 check_shape(frame, frame_slice.shape[1:]) or True
Severity: Info
Found in src/libertem/udf/base.py by bandit
Severity
Category
Status
Source
Language