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 buffer.has_data()

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, "first 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 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 len(partition_slice.shape.nav) == 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 np.min(triple.indices) >= 0
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 check_shape(frame, frame_slice.shape) or True
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 len(ref) == len(weighs)

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 #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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert isinstance(dask_array, dask.array.Array)

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

        assert allocation.shm_name == self._shm.name

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)

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 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
  • 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 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 valid_nav_mask.shape[0] == count_nonzero(roi)
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 backend in _get_canonical_backends(self.get_backends())
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 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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

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

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

    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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert len(mem) % itemsize == 0, \
            "len(mem) must fit the dtype"

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

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

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.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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert header['width'] % 2 == 0
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
  • 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 array_backend in (NUMPY, CUDA)
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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

            assert s.has_canonical_format
Severity: Info
Found in src/libertem/common/container.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.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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert len(slices) <= self.ndim

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 == 0, \
            "len(mem) must fit the number of frames"

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

        assert self._io_backend is not None

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

        assert self._raw_dtype is not None and not isinstance(self._raw_dtype, int)

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

                assert predicate(self.get_block_by_index(current_upper))
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 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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

    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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert isinstance(buffer, BufferWrapper)
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 check_shape(frame, frame_slice.shape[1:]) or True
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 s.has_canonical_format
Severity: Info
Found in src/libertem/common/container.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 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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

    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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert arr.shape[1] == slicing.frame_size, \
            "array shape must fit the signal shape"

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

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

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

    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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        assert self.meta 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 self._tmp_file is not None
Severity: Info
Found in src/libertem/io/writers/base.py by bandit
Severity
Category