diff --git a/src/ansys/sound/core/sound_composer/source_control_time.py b/src/ansys/sound/core/sound_composer/source_control_time.py index 5a64f183b..abd9e7433 100644 --- a/src/ansys/sound/core/sound_composer/source_control_time.py +++ b/src/ansys/sound/core/sound_composer/source_control_time.py @@ -89,11 +89,6 @@ def control(self, control: Field): "Specified control profile must be provided as a DPF field." ) - if len(control.data) == 0: - raise PyAnsysSoundException( - "Specified control profile must have at least one element." - ) - self.__control = control def load_from_wave_file(self, file_str: str): diff --git a/tests/tests_sound_composer/test_sound_composer_source_control_time.py b/tests/tests_sound_composer/test_sound_composer_source_control_time.py index 64c42c966..01ddff1ea 100644 --- a/tests/tests_sound_composer/test_sound_composer_source_control_time.py +++ b/tests/tests_sound_composer/test_sound_composer_source_control_time.py @@ -67,24 +67,17 @@ def test_source_control_time_properties(): assert len(control_time.control.data) > 0 -def test_source_control_time_propertiess_exceptions(): +def test_source_control_time_properties_exceptions(): """Test SourceControlTime properties' exceptions.""" control_time = SourceControlTime() - # Test control setter exception 1 (wrong control type). + # Test control setter exception (wrong control type). with pytest.raises( PyAnsysSoundException, match="Specified control profile must be provided as a DPF field.", ): control_time.control = "WrongType" - # Test control setter exception 2 (empty control). - with pytest.raises( - PyAnsysSoundException, - match="Specified control profile must have at least one element.", - ): - control_time.control = Field() - def test_source_control_time___str__(): """Test SourceControlTime __str__ method."""