Skip to content

Commit

Permalink
add test of adding athena group
Browse files Browse the repository at this point in the history
  • Loading branch information
newville committed Jan 11, 2025
1 parent 24843a6 commit 265c080
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/test_athena_addgroup.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 265c080

Please sign in to comment.