Skip to content

Remove assertions from non-test code #28

@s2t2

Description

@s2t2

Let's remove all the assertions from non-test code. For example the ones occurring in smart_control/simulator/stochastic_occupancy.py.

"Do not use assert statements in place of conditionals or validating preconditions." - source

Originally posted by @s2t2 in #27 (comment)

Instead, we should raise errors like ValueError, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions