Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slicing IO read_ routines #586

Merged
merged 7 commits into from
Jun 20, 2023
Merged

Slicing IO read_ routines #586

merged 7 commits into from
Jun 20, 2023

Commits on Jun 20, 2023

  1. preliminary test-bed for slicing io stuff

    Fixed documentation issues and enabled this.
    Storing sliced objects will also work.
    Currently nested slicing is not possible.
    
    enabled nested with of a sile and changed to SileBinder
    
    The sile_read_multiple has been deleted, now the way to
    do it is SileBinder.
    This is more versatile and allows better handling.
    It also patches the documentation.
    
    This changes the behaviour of all files using this.
    By default a read_* with the SileBinder will
    only read the next entry, however to read
    multiple one should use read_*[...] for slicing
    the data.
    The bound method will try and be smart about only reading
    the needed elements, there is a bit of overhead, but
    largely it should be fast.
    
    All tests are functional again.
    
    Signed-off-by: Nick Papior <[email protected]>
    zerothi committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    e00a557 View commit details
    Browse the repository at this point in the history
  2. removed try..except

    if the file reads raises something, then announce
    
    Signed-off-by: Nick Papior <[email protected]>
    zerothi committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    5203e9d View commit details
    Browse the repository at this point in the history
  3. added negative test and reversing elements

    Signed-off-by: Nick Papior <[email protected]>
    zerothi committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    3665e05 View commit details
    Browse the repository at this point in the history
  4. added default slice to the patched documentation

    Signed-off-by: Nick Papior <[email protected]>
    zerothi committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    1a56852 View commit details
    Browse the repository at this point in the history
  5. added last/next in the slicer

    Signed-off-by: Nick Papior <[email protected]>
    zerothi committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    0552845 View commit details
    Browse the repository at this point in the history
  6. converted orca.stdout to use SileBinder

    This makes the read-functionalities more
    useable to retain other parts of the information.
    
    All tests are functional again.
    
    Signed-off-by: Nick Papior <[email protected]>
    zerothi committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    6eb605c View commit details
    Browse the repository at this point in the history
  7. removed parameters from xyz

    Signed-off-by: Nick Papior <[email protected]>
    zerothi committed Jun 20, 2023
    Configuration menu
    Copy the full SHA
    34a265e View commit details
    Browse the repository at this point in the history