MCPcopy Create free account
hub / github.com/SINGROUP/dscribe / assert_systems

Function assert_systems

tests/conftest.py:404–412  ·  view source on GitHub ↗

Tests that the descriptor can correctly handle differently described systems

(descriptor_func, pbc, cell)

Source from the content-addressed store, hash-verified

402
403
404def assert_systems(descriptor_func, pbc, cell):
405 """Tests that the descriptor can correctly handle differently described
406 systems
407 """
408 system = get_simple_finite()
409 system.set_pbc(pbc)
410 system.set_cell(cell)
411 descriptor = descriptor_func([system])
412 descriptor.create(system)
413
414
415def assert_dtype(descriptor_func, dtype, sparse):

Callers 2

test_systemsFunction · 0.90
test_systemsFunction · 0.90

Calls 4

get_simple_finiteFunction · 0.85
set_pbcMethod · 0.80
set_cellMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected