Skip to content

Commit ad0a0a5

Browse files
committed
added changelog for issue 578
1 parent 1651863 commit ad0a0a5

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

doc/source/changes/version_0_29.rst.inc

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,28 @@ New features
2323
Miscellaneous improvements
2424
--------------------------
2525

26-
* improved something.
26+
* saving or loading a session from a file now includes `Axis` and `Group` objects in addition to arrays
27+
(closes :issue:`578`):
28+
29+
Create a session containing axes, groups and arrays
30+
31+
>>> a, b = Axis("a=a0..a2"), Axis("b=b0..b2")
32+
>>> a01 = a['a0,a1'] >> 'a01'
33+
>>> arr1, arr2 = ndtest((a, b)), ndtest(a)
34+
>>> s = Session([('a', a), ('b', b), ('a01', a01), ('arr1', arr1), ('arr2', arr2)])
35+
36+
Saving a session will save axes, groups and arrays
37+
38+
>>> s.save('session.h5')
39+
40+
Loading a session will load axes, groups and arrays
41+
42+
>>> s2 = s.load('session.h5')
43+
>>> s2
44+
Session(arr1, arr2, a, b, a01)
45+
46+
Note: all axes (groups) of a session are stored in the same CSV file/Excel sheet/HDF group
47+
named __axes__ (__groups__).
2748

2849

2950
Fixes

0 commit comments

Comments
 (0)