Skip to content

Bloated __init__ #89

@ocefpaf

Description

@ocefpaf

@rhattersley raised this in APIRUS:

If your function has this many parameters maybe formatting isn't the problem that needs solving?

I see a few way we can cut down the fat there. Most of those are expected to exist by the SGRID convention and should be initialized without any declaration in __init__(), even the optional ones can be tested for presence and made None inside the function.

That will remove the ability to create as SGRID object by hand, but I don't think that was the goal in the first place. What do you think @ayan-usgs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions