Skip to content

Re-order functions in pysoundfile.py #57

@mgeier

Description

@mgeier

I think it's better if the high-level functions are listed earlier in the source file (and therefore in the Sphinx documentation, see also #27).

I think the read() function should be the very first, followed by the write() function.

Then probably available_formats(), available_subtypes(), default_subtype() and format_check().

After that, probably the blocks() function.

I guess it makes sense to put all the underscore-prefixed functions right after that.
Or should we put them immediately before or after the function they are used in?

I would move the class definition of Soundfile to the very end.
Within the class we should probably also move some methods around, but I'm not sure what's the best strategy there.

We should do this before re-writing the docstrings in NumPy style (#27), but probably after setting up Sphinx.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions