3737from ansys .geometry .core .logger import LOG
3838from ansys .geometry .core .misc .checks import (
3939 check_type ,
40- deprecated_argument ,
4140 kwargs_passed_not_accepted ,
4241)
4342
@@ -511,7 +510,6 @@ def launch_modeler_with_spaceclaim_and_pimlight(
511510 )
512511
513512
514- @deprecated_argument ("product_version" , "version" , version = "0.10.8" , remove = "0.13.0" )
515513@kwargs_passed_not_accepted
516514def launch_modeler_with_geometry_service (
517515 version : str | int | None = None ,
@@ -528,7 +526,6 @@ def launch_modeler_with_geometry_service(
528526 uds_dir : Path | str | None = None ,
529527 uds_id : str | None = None ,
530528 certs_dir : Path | str | None = None ,
531- product_version : int = None , # DEPRECATED: use `version` instead
532529 ** kwargs : dict | None ,
533530) -> "Modeler" :
534531 """Start the Geometry service locally using the ``ProductInstance`` class.
@@ -596,8 +593,6 @@ def launch_modeler_with_geometry_service(
596593 By default `None` and thus search for the "ANSYS_GRPC_CERTIFICATES" environment variable.
597594 If not found, it will use the "certs" folder assuming it is in the current working
598595 directory.
599- product_version: int, optional
600- The product version to be started. Deprecated, use `version` instead.
601596 **kwargs : dict, default: None
602597 Placeholder to prevent errors when passing additional arguments that
603598 are not compatible with this method.
@@ -658,11 +653,9 @@ def launch_modeler_with_geometry_service(
658653 uds_dir = uds_dir ,
659654 uds_id = uds_id ,
660655 certs_dir = certs_dir ,
661- product_version = product_version ,
662656 )
663657
664658
665- @deprecated_argument ("product_version" , "version" , version = "0.10.8" , remove = "0.13.0" )
666659@kwargs_passed_not_accepted
667660def launch_modeler_with_discovery (
668661 version : str | int | None = None ,
@@ -680,7 +673,6 @@ def launch_modeler_with_discovery(
680673 uds_dir : Path | str | None = None ,
681674 uds_id : str | None = None ,
682675 certs_dir : Path | str | None = None ,
683- product_version : int = None , # DEPRECATED: use `version` instead
684676 ** kwargs : dict | None ,
685677):
686678 """Start Ansys Discovery locally using the ``ProductInstance`` class.
@@ -750,8 +742,6 @@ def launch_modeler_with_discovery(
750742 By default `None` and thus search for the "ANSYS_GRPC_CERTIFICATES" environment variable.
751743 If not found, it will use the "certs" folder assuming it is in the current working
752744 directory.
753- product_version: int, optional
754- The product version to be started. Deprecated, use `version` instead.
755745 **kwargs : dict, default: None
756746 Placeholder to prevent errors when passing additional arguments that
757747 are not compatible with this method.
@@ -782,7 +772,7 @@ def launch_modeler_with_discovery(
782772 with chatty logs, using API v231 and a ``300`` seconds timeout:
783773
784774 >>> from ansys.geometry.core import launch_modeler_with_discovery
785- >>> modeler = launch_modeler_with_discovery(product_version = 241,
775+ >>> modeler = launch_modeler_with_discovery(version = 241,
786776 host="10.171.22.44",
787777 port=5001,
788778 api_version= 231,
@@ -807,11 +797,9 @@ def launch_modeler_with_discovery(
807797 uds_dir = uds_dir ,
808798 uds_id = uds_id ,
809799 certs_dir = certs_dir ,
810- product_version = product_version ,
811800 )
812801
813802
814- @deprecated_argument ("product_version" , "version" , version = "0.10.8" , remove = "0.13.0" )
815803@kwargs_passed_not_accepted
816804def launch_modeler_with_spaceclaim (
817805 version : str | int | None = None ,
@@ -829,7 +817,6 @@ def launch_modeler_with_spaceclaim(
829817 uds_dir : Path | str | None = None ,
830818 uds_id : str | None = None ,
831819 certs_dir : Path | str | None = None ,
832- product_version : int = None , # DEPRECATED: use `version` instead
833820 ** kwargs : dict | None ,
834821):
835822 """Start Ansys SpaceClaim locally using the ``ProductInstance`` class.
@@ -899,8 +886,6 @@ def launch_modeler_with_spaceclaim(
899886 By default `None` and thus search for the "ANSYS_GRPC_CERTIFICATES" environment variable.
900887 If not found, it will use the "certs" folder assuming it is in the current working
901888 directory.
902- product_version: int, optional
903- The product version to be started. Deprecated, use `version` instead.
904889 **kwargs : dict, default: None
905890 Placeholder to prevent errors when passing additional arguments that
906891 are not compatible with this method.
@@ -931,7 +916,7 @@ def launch_modeler_with_spaceclaim(
931916 with chatty logs, using API v231 and a ``300`` seconds timeout:
932917
933918 >>> from ansys.geometry.core import launch_modeler_with_spaceclaim
934- >>> modeler = launch_modeler_with_spaceclaim(product_version = 241,
919+ >>> modeler = launch_modeler_with_spaceclaim(version = 241,
935920 host="10.171.22.44",
936921 port=5001,
937922 api_version= 231,
@@ -956,11 +941,9 @@ def launch_modeler_with_spaceclaim(
956941 uds_dir = uds_dir ,
957942 uds_id = uds_id ,
958943 certs_dir = certs_dir ,
959- product_version = product_version ,
960944 )
961945
962946
963- @deprecated_argument ("product_version" , "version" , version = "0.10.8" , remove = "0.13.0" )
964947@kwargs_passed_not_accepted
965948def launch_modeler_with_core_service (
966949 version : str | int | None = None ,
@@ -977,7 +960,6 @@ def launch_modeler_with_core_service(
977960 uds_dir : Path | str | None = None ,
978961 uds_id : str | None = None ,
979962 certs_dir : Path | str | None = None ,
980- product_version : int = None , # DEPRECATED: use `version` instead
981963 ** kwargs : dict | None ,
982964) -> "Modeler" :
983965 """Start the Geometry Core service locally using the ``ProductInstance`` class.
@@ -1045,8 +1027,6 @@ def launch_modeler_with_core_service(
10451027 By default `None` and thus search for the "ANSYS_GRPC_CERTIFICATES" environment variable.
10461028 If not found, it will use the "certs" folder assuming it is in the current working
10471029 directory.
1048- product_version: int, optional
1049- The product version to be started. Deprecated, use `version` instead.
10501030 **kwargs : dict, default: None
10511031 Placeholder to prevent errors when passing additional arguments that
10521032 are not compatible with this method.
@@ -1108,7 +1088,6 @@ def launch_modeler_with_core_service(
11081088 uds_id = uds_id ,
11091089 certs_dir = certs_dir ,
11101090 specific_minimum_version = 252 ,
1111- product_version = product_version ,
11121091 )
11131092
11141093
0 commit comments