From a4f86e5a7c490be4e1febbca16df02b9508a72e7 Mon Sep 17 00:00:00 2001 From: Thomas Holder Date: Sat, 30 Sep 2023 10:22:42 +0200 Subject: [PATCH] Add tests: load_mtz_cctbx --- tests/data/5e5z_phases.mtz | Bin 0 -> 32044 bytes tests/test_load_mtz_cctbx.py | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 tests/data/5e5z_phases.mtz create mode 100644 tests/test_load_mtz_cctbx.py diff --git a/tests/data/5e5z_phases.mtz b/tests/data/5e5z_phases.mtz new file mode 100644 index 0000000000000000000000000000000000000000..451c9ecf90ceaf6aefb17af5c2a23403228501bb GIT binary patch literal 32044 zcmb`P1zZ&0`u|rkQEU+t>_)njJw+IxB3P&>Wq=qU2IYc;0fL2!ieLv8qS&s1qS)P{ zqA1wi{?9za%v}H9d%tn-Z(gqNea?R7J!j6Iot<5F*VV(*=td)z%7LivK2jGA{wxpcOf;qc)1*-gw)Iz=Uq77Nly0-Ntl?9SADwX6=VZm|WNG>^< z^$Km>)0hfwHoPfNTlX@*U8O4cUY^$$?ANd9az=4rp3$HyIj;29x*E9c&GxXaW_L$m zyPe~KeZM4>jerJ88O5Oi$Fp-gsa=B!I9_Kp75Z-Yc@1#q+M~dXu|eX#@$E?&#i0d< zy*;BePZuLUH(2NKP7mOs6Q)4Cs~Sn><014}$|#OPaJ-t`ojh--Lzbmy@mi%iePJ8$ z>&clw+;TY|dkco+PO7Dh=n(G{7}JBTX@C8S*!F%A>D?)g#jh>~ZmZvy3ib7bJy0KP z9fqWg;!yGJXi$wwo5^vKjtrXIAW7%PvKpIi0dH&^40PBugqWy(>E5VGaz=4raMZTi zMux3lg7)UEBQJiqGRt!tfXxy!fw$;r)b7=JvUtEmIiol<;4oR;jFNlj(d{F;^q$XH zIyAL9aPry?^bW7DPJNAUakelDmothZ0~`T1TGDx4d2GF6KdEA=xMr*IhF{(T!B+9;4*|C9~9a6Gm1m>War)|Jy)MVZ8!WN z``0gHZYNY!;E4^}q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{TuWf7Q z#NF}#u73{l3qoN}#99BpyfkzeNCr4cyDR#{*OGsHK>gLw!R^1_AErhjBZvErA2-=Q zc+%fm{STqv?+;TW-{5H>lZL}%`w!W_)A0NKVQS>(J<0oj&>8)He~A71zq>!c_dneq ej=dfJ&anLL41eo|EBiQgcO(wNTQUFZ^8WyV&!rXs literal 0 HcmV?d00001 diff --git a/tests/test_load_mtz_cctbx.py b/tests/test_load_mtz_cctbx.py new file mode 100644 index 0000000..1459304 --- /dev/null +++ b/tests/test_load_mtz_cctbx.py @@ -0,0 +1,24 @@ +import psico.load_mtz_cctbx as m +import importlib.util +import pytest +from pathlib import Path +from pymol import cmd + +DATA_PATH = Path(__file__).resolve().parent / 'data' + + +def test_load_mtz_cctbx(): + cmd.reinitialize() + + if importlib.util.find_spec("iotbx") is None: + pytest.skip("cctbx not found") + + m.load_mtz_cctbx(DATA_PATH / "5e5z_phases.mtz") + + assert set(cmd.get_names()) == { + '5e5z_phases_FC_ALL_LS_PHIC_ALL_LS', + '5e5z_phases_DELFWT_PHDELWT', + '5e5z_phases_FWT_PHWT', + '5e5z_phases_FC_ALL_PHIC_ALL', + '5e5z_phases_FC_PHIC', + }