Skip to content

Commit

Permalink
add simple test for entity_id
Browse files Browse the repository at this point in the history
  • Loading branch information
BradyAJohnston committed Aug 3, 2023
1 parent 74c5d9b commit 7b850a0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_attributes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import MolecularNodes as mn
import numpy as np

def test_entity_id():
mol = mn.load.molecule_rcsb('1cd3')
ents = mn.obj.get_attribute(mol, 'entity_id')

assert np.all(np.isin(ents, np.array(range(4))))

0 comments on commit 7b850a0

Please sign in to comment.