Start writing expand_datablock method.

This commit is contained in:
Josh Lucas
2026-04-22 16:47:46 -05:00
parent 3eace6253a
commit 97ae7f64f6
2 changed files with 31 additions and 21 deletions

View File

@@ -10,5 +10,15 @@ def test_init():
def test_export():
xsy = XSY("tests/data/hsps.xsy")
out_path = "tests/output"
xsy.datablock.to_csv(os.path.join(out_path, 'test_db.csv'), index=False)
xsy.defs.to_csv(os.path.join(out_path, 'test_ddt.csv'), index=False)
xsy.datablock.to_csv(
os.path.join(out_path, 'datablock.csv'),
index=False
)
xsy.defs.to_csv(
os.path.join(out_path, 'defs.csv'),
index=False
)
xsy.datablock_expanded.to_csv(
os.path.join(out_path, 'expanded.csv'),
index=False
)