@@ -602,7 +602,6 @@ def launch_modeler_with_geometry_service(
602602
603603
604604@deprecated_argument (arg = "log_level" , alternative = "server_log_level" )
605- @deprecated_argument (arg = "logs_folder" , alternative = "server_logs_folder" )
606605def launch_modeler_with_discovery (
607606 product_version : int = None ,
608607 host : str = "localhost" ,
@@ -613,10 +612,8 @@ def launch_modeler_with_discovery(
613612 hidden : bool = False ,
614613 server_log_level : int = 2 ,
615614 client_log_level : int = logging .INFO ,
616- server_logs_folder : str = None ,
617615 client_log_file : str = None ,
618616 log_level : int = None , # DEPRECATED
619- logs_folder : str = None , # DEPRECATED
620617 ** kwargs : dict | None ,
621618):
622619 """Start Ansys Discovery locally using the ``ProductInstance`` class.
@@ -668,16 +665,11 @@ def launch_modeler_with_discovery(
668665 client_log_level : int, optional
669666 Logging level to apply to the client. By default, INFO level is used.
670667 Use the logging module's levels: DEBUG, INFO, WARNING, ERROR, CRITICAL.
671- server_logs_folder : str, optional
672- Sets the backend's logs folder path. If nothing is defined,
673- the backend will use its default path.
674668 client_log_file : str, optional
675669 Sets the client's log file path. If nothing is defined,
676670 the client will log to the console.
677671 log_level : int, optional
678672 DEPRECATED. Use ``server_log_level`` instead.
679- logs_folder : str, optional
680- DEPRECATED. Use ``server_logs_folder`` instead.
681673 **kwargs : dict, default: None
682674 Placeholder to prevent errors when passing additional arguments that
683675 are not compatible with this method.
@@ -715,6 +707,13 @@ def launch_modeler_with_discovery(
715707 timeout=300,
716708 server_log_level=0)
717709 """
710+ for unused_var in ["server_logs_folder" , "logs_folder" ]:
711+ if unused_var in kwargs :
712+ LOG .warning (
713+ f"The '{ unused_var } ' parameter is not used in 'launch_modeler_with_discovery'. "
714+ "Please remove it from the arguments."
715+ )
716+
718717 return prepare_and_start_backend (
719718 BackendType .DISCOVERY ,
720719 product_version = product_version ,
@@ -727,15 +726,12 @@ def launch_modeler_with_discovery(
727726 hidden = hidden ,
728727 server_log_level = server_log_level ,
729728 client_log_level = client_log_level ,
730- server_logs_folder = server_logs_folder ,
731729 client_log_file = client_log_file ,
732730 log_level = log_level ,
733- logs_folder = logs_folder ,
734731 )
735732
736733
737734@deprecated_argument (arg = "log_level" , alternative = "server_log_level" )
738- @deprecated_argument (arg = "logs_folder" , alternative = "server_logs_folder" )
739735def launch_modeler_with_spaceclaim (
740736 product_version : int = None ,
741737 host : str = "localhost" ,
@@ -746,10 +742,8 @@ def launch_modeler_with_spaceclaim(
746742 hidden : bool = False ,
747743 server_log_level : int = 2 ,
748744 client_log_level : int = logging .INFO ,
749- server_logs_folder : str = None ,
750745 client_log_file : str = None ,
751746 log_level : int = None , # DEPRECATED
752- logs_folder : str = None , # DEPRECATED
753747 ** kwargs : dict | None ,
754748):
755749 """Start Ansys SpaceClaim locally using the ``ProductInstance`` class.
@@ -798,16 +792,11 @@ def launch_modeler_with_spaceclaim(
798792 client_log_level : int, optional
799793 Logging level to apply to the client. By default, INFO level is used.
800794 Use the logging module's levels: DEBUG, INFO, WARNING, ERROR, CRITICAL.
801- server_logs_folder : str, optional
802- Sets the backend's logs folder path. If nothing is defined,
803- the backend will use its default path.
804795 client_log_file : str, optional
805796 Sets the client's log file path. If nothing is defined,
806797 the client will log to the console.
807798 log_level : int, optional
808799 DEPRECATED. Use ``server_log_level`` instead.
809- logs_folder : str, optional
810- DEPRECATED. Use ``server_logs_folder`` instead.
811800 **kwargs : dict, default: None
812801 Placeholder to prevent errors when passing additional arguments that
813802 are not compatible with this method.
@@ -845,6 +834,13 @@ def launch_modeler_with_spaceclaim(
845834 timeout=300,
846835 server_log_level=0)
847836 """
837+ for unused_var in ["server_logs_folder" , "logs_folder" ]:
838+ if unused_var in kwargs :
839+ LOG .warning (
840+ f"The '{ unused_var } ' parameter is not used in 'launch_modeler_with_spaceclaim'. "
841+ "Please remove it from the arguments."
842+ )
843+
848844 return prepare_and_start_backend (
849845 BackendType .SPACECLAIM ,
850846 product_version = product_version ,
@@ -857,10 +853,8 @@ def launch_modeler_with_spaceclaim(
857853 hidden = hidden ,
858854 server_log_level = server_log_level ,
859855 client_log_level = client_log_level ,
860- server_logs_folder = server_logs_folder ,
861856 client_log_file = client_log_file ,
862857 log_level = log_level ,
863- logs_folder = logs_folder ,
864858 )
865859
866860
0 commit comments