File: test_lammpslib_interface.py

package info (click to toggle)
python-ase 3.22.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 14,344 kB
  • sloc: python: 126,379; xml: 946; makefile: 111; javascript: 47
file content (12 lines) | stat: -rw-r--r-- 292 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
import numpy as np
from ase.calculators.lammpslib import is_upper_triangular


def test_lammpslib_interface():
    """test some functionality of the interace"""
    m = np.ones((3, 3))
    assert not is_upper_triangular(m)

    m[2, 0:2] = 0
    m[1, 0] = 0
    assert is_upper_triangular(m)