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 s <= cs, "invalid nav_shape #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 next_el is None

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

        assert slice2 is None or slice2 == slice(None, None, None)

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

        assert self._frame_header % itemsize == 0

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

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

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

        assert self._tmp_file is None
Severity: Info
Found in src/libertem/io/writers/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 len(slices) <= self.ndim

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

        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

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

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

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 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 len(files) > 0

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

        assert np.min(triple.indptr) >= 0
Severity: Info
Found in src/libertem/io/dataset/raw_csr.py by bandit
Severity
Category
Status
Source
Language