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

Python Series/Iteration: Fix Length #1659

Merged
merged 2 commits into from
Sep 9, 2024

Commits on Aug 5, 2024

  1. Python Series/Iteration: Fix Length

    If the `len(...)` intrinsic for series and iterations.
    
    ```py
    import openpmd_api as io
    
    s = io.Series("build/samples/git-sample/3d-bp4/example-3d-bp4_%T.bp", io.Access.read_only)
    
    s
    <openPMD.Series at 'build/samples/git-sample/3d-bp4/example-3d-bp4_%T.bp' with 2 iteration(s) and 10 attributes>
    
    s.iterations
    <openPMD.Iteration_Container with 2 entries and 0 attribute(s)>
    
    len(s)
    2
    
    len(s.iterations)
    2
    ```
    ax3l committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    bd25038 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2024

  1. Python: Remove Attributable.__len__

    For consistency because its only a mixin class.
    Write migration guide for breaking change.
    ax3l committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    fea1fda View commit details
    Browse the repository at this point in the history