From 265c0806a8ac1896ac71aeeda285fc9aaea8b5d2 Mon Sep 17 00:00:00 2001 From: Matthew Newville Date: Sat, 11 Jan 2025 15:16:37 -0600 Subject: [PATCH] add test of adding athena group --- tests/test_athena_addgroup.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/test_athena_addgroup.py diff --git a/tests/test_athena_addgroup.py b/tests/test_athena_addgroup.py new file mode 100644 index 000000000..f64c92067 --- /dev/null +++ b/tests/test_athena_addgroup.py @@ -0,0 +1,16 @@ +import numpy.testing +from larch.io import read_ascii, AthenaProject + + +def test_add_athena_group(): + a = read_ascii('../examples/xafsdata/cu_10k.xmu') + b = read_ascii('../examples/xafsdata/cu_10k.xmu') + b.mutrans = b.mu[:] + b.filename = 'cu_10k_copy.xmu' + del b.mu + + + p = AthenaProject('x1.prj') + p.add_group(a) + p.add_group(b) + p.save()