Skip to content

simpler file navigation utilities #8

@bkatiemills

Description

@bkatiemills

Regarding #6, it's not as simple as it could be for a user to walk around the file. For example, is_last_profile_in_file works in a guessable way on a WodProfile class, but advance_file_position_to_next_profile appears to do nothing, thanks (I think) to some pass-by-value-ism in how Python is thinking of the fid variable.

It'd be nice to have a set of functions with the semantic meaning:

  • skip to the next profile
  • rewind to the start of this profile
  • skip to the previous profile
  • skip to the first profile
  • skip to the last profile

Much of this functionality already exists, but as detailed above, isn't totally obvious in usage.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions