Skip to content

reduce the boilerplate #61

Open
Open
@JoshCu

Description

@JoshCu

Perhaps more of a discussion than an issue; can some of the methods just raise not implemented by default and drop the abstractmethod decorator that forces subclasses to explicitly implement every function?
For example if the gridded methods didn't require explicit implementation, I wouldn't need all of this.

Image

This might be too far from the standard, could some of the common values also have default implementations? There are probably other examples too but I've left these unchanged from the bmi python example I copied. Could they also be defaults in the base class?

     def get_start_time( self ):    
        return self._start_time

    def get_end_time( self ):
        return self._end_time

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