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

        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

        assert all(len(centers) == len(other) for other in [refineds, peak_values, peak_elevations])

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

    assert is_sparse(a)
Severity: Info
Found in src/libertem/common/sparse.py by bandit

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 self._io_backend is not None

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

    assert header['filesize'] is not None
Severity: Info
Found in src/libertem/io/dataset/frms6.py by bandit

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

        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

    assert rest == 0, f"found a rest of {rest}, corrupted file?"
Severity: Info
Found in src/libertem/io/dataset/tvips.py by bandit

subprocess call - check for execution of untrusted input.
Open

    subprocess.run(
        cmd, check=True,
        cwd=os.path.join(BASE_DIR, '..'),
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

        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

            assert len(rest) == 0

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

            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

        assert np.max(triple.indptr) == len(triple.indices)
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._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

        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

        assert arr.size > 0

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 self._meta is not None
Severity: Info
Found in src/libertem/io/dataset/raw_csr.py by bandit
Severity
Category
Status
Source
Language