File: conftest.py

package info (click to toggle)
pyswarms 1.3.0-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 33,708 kB
  • sloc: python: 4,108; makefile: 240; sh: 32
file content (11 lines) | stat: -rw-r--r-- 245 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
# Import modules
import numpy as np
import pytest


@pytest.fixture()
def particles():
    shape = (np.random.randint(10, 20), np.random.randint(2, 6))
    particles_ = np.random.uniform(0, 10, shape)
    print(particles_)
    return particles_