sisl icon indicating copy to clipboard operation
sisl copied to clipboard

Siles and opening them while retaining position

Open zerothi opened this issue 1 year ago • 1 comments

Describe the feature Currently nested openings of files are cumbersome.

It would be great if the (ascii) siles allows to step arbitrarily in the files.

Something like:

with sile:
    A1 = sile.read_*()
    with sile:
         B1 = sile.read_*()
         B2 = sile.read_*()
    A2 = sile.read_*()
assert A1 == B1
assert A2 == B2

it would ease lots of the functionality around, and especially output files where other settings in the files determine whether we can find certain stuff in them. (settings etc.)

zerothi avatar Jun 17 '23 06:06 zerothi