Skip to content

Increase robustness of the code #96

Open
@lionelkusch

Description

@lionelkusch

I find three ways to increase the robustness of the code:

  1. Add assertion at the beginning and at then end of functions:
    This can help to debug the code and the assertion can be remove with the option -O or -OO of python.
    The only inconvenient, at this option is that the user need to know the existence of this option of python.

  2. Add type to argument of functions:
    There is some recommendation here.
    I don't really like this way because types in python become less readable.

  3. Choose only critical test to do and raise the associate error (see Policy for testing types of input parameters #61).

Metadata

Metadata

Assignees

No one assigned

    Labels

    coding stylequestion regarding formatting and declaration of functionsmanagement of projectquestion regarding the policy of the project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions