finiterect-constant-driving: sort slice labels for deterministic output
This commit is contained in:
parent
ecac798529
commit
e5270b54fb
|
@ -54,6 +54,8 @@ eh = eV/hbar
|
||||||
# Check slice ranges and generate all corresponding combinations
|
# Check slice ranges and generate all corresponding combinations
|
||||||
slicepairs = []
|
slicepairs = []
|
||||||
slicelabels = set(a.xslice.keys()) | set(a.yslice.keys())
|
slicelabels = set(a.xslice.keys()) | set(a.yslice.keys())
|
||||||
|
slicelabels = sorted(slicelabels, key= lambda l:
|
||||||
|
'.None' if l is None else str(l))
|
||||||
for label in slicelabels:
|
for label in slicelabels:
|
||||||
rowslices = a.xslice.get(label, None)
|
rowslices = a.xslice.get(label, None)
|
||||||
colslices = a.yslice.get(label, None)
|
colslices = a.yslice.get(label, None)
|
||||||
|
|
Loading…
Reference in New Issue