Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
kharitonov-ivan committed Oct 29, 2023
1 parent e051f34 commit 343a604
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/configs/object_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ def __init__(self, initial: Gaussian, t_birth: int, t_death: int, *args, **kwarg
"""
assert isinstance(initial, Gaussian), "Argument of wrong type!"
assert isinstance(t_birth, int), "Argument of wrong type!"
assert t_birth >= 0, "object birth should be positive!"
assert isinstance(t_death, int), "Argument of wrong type!"
assert t_death >= 0, "object death should be positive!"
assert t_death >= t_birth, "object death should be greater or equal than birth!"
assert 0 <= t_birth <= t_death

self.id = next(Object.new_id)
self.initial_state = initial
Expand Down

0 comments on commit 343a604

Please sign in to comment.