mastapy 14.1.2b2__py3-none-any.whl → 14.1.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -692,13 +692,6 @@ def _init_runtime_setup(environment_summary: EnvironmentSummary) -> DllPaths:
692
692
  python_version = get_python_version()
693
693
 
694
694
  if python_version in SpecifierSet(">=3.9"):
695
- if environment_summary.is_valid_linux_configuration:
696
- raise MastaInitException(
697
- "You are attempting to load a .NET Framework version of the MASTA API "
698
- "on Linux. This is not possible. Linux is only supported in .NET 6+ "
699
- "versions of the MASTA API."
700
- ) from None
701
-
702
695
  python_runtime_dll = "Python.Runtime.dll"
703
696
  clr_loader_dll = "ClrLoader.dll"
704
697
 
@@ -723,13 +716,18 @@ def _init_runtime_setup(environment_summary: EnvironmentSummary) -> DllPaths:
723
716
  environment_summary.dll_directory, clr_loader_dll
724
717
  )
725
718
 
726
- if (
727
- not os.path.exists(clr_loader_path)
728
- and environment_summary.dotnet_version is DotNetVersion.NET462
729
- ):
730
- raise MastaInitException(
731
- f"Failed to load CLR loader at path '{clr_loader_path}'."
732
- ) from None
719
+ if environment_summary.dotnet_version is DotNetVersion.NET462:
720
+ if environment_summary.operating_system is OperatingSystem.LINUX:
721
+ raise MastaInitException(
722
+ "You are attempting to load a .NET Framework version of the MASTA "
723
+ "API on Linux. This is not possible. Linux is only supported in "
724
+ ".NET 6+ versions of the MASTA API."
725
+ ) from None
726
+
727
+ if not os.path.exists(clr_loader_path):
728
+ raise MastaInitException(
729
+ f"Failed to load CLR loader at path '{clr_loader_path}'."
730
+ ) from None
733
731
  else:
734
732
  if environment_summary.operating_system is OperatingSystem.LINUX:
735
733
  raise MastaInitException(
@@ -3,5 +3,5 @@
3
3
  Module containing the version information for the package.
4
4
  """
5
5
 
6
- __version__ = "14.1.2"
7
- __api_version__ = "14.1.2"
6
+ __version__ = "14.1.4"
7
+ __api_version__ = "14.1.4"
@@ -223,6 +223,10 @@ class Status(_0.APIBase):
223
223
 
224
224
  return value
225
225
 
226
+ def clear_all_dismissible_items(self: "Self") -> None:
227
+ """Method does not return."""
228
+ pythonnet_method_call(self.wrapped, "ClearAllDismissibleItems")
229
+
226
230
  @enforce_parameter_types
227
231
  def output_default_report_to(self: "Self", file_path: "str") -> None:
228
232
  """Method does not return.
@@ -83,6 +83,20 @@ class DataLoggerItem(_0.APIBase):
83
83
  type_ = temp.GetType()
84
84
  return constructor.new(type_.Namespace, type_.Name)(temp)
85
85
 
86
+ @property
87
+ def name_including_path(self: "Self") -> "str":
88
+ """str
89
+
90
+ Note:
91
+ This property is readonly.
92
+ """
93
+ temp = pythonnet_property_get(self.wrapped, "NameIncludingPath")
94
+
95
+ if temp is None:
96
+ return ""
97
+
98
+ return temp
99
+
86
100
  @property
87
101
  def report_names(self: "Self") -> "List[str]":
88
102
  """List[str]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mastapy
3
- Version: 14.1.2b2
3
+ Version: 14.1.4
4
4
  Summary: Python scripting API for MASTA.
5
5
  License: MIT
6
6
  Keywords: mastapy,smt,masta
@@ -33,13 +33,13 @@ Requires-Dist: ptvsd (>=4.3.2) ; python_version < "3.13"
33
33
  Requires-Dist: pythonnet (<3.0.0) ; python_version < "3.9"
34
34
  Requires-Dist: pythonnet (>=3.0.0,<4.0.0) ; python_version >= "3.9"
35
35
  Requires-Dist: typeguard (>=4.1.2) ; python_full_version >= "3.7.4"
36
- Project-URL: Documentation, https://documentation.smartmt.com/MastaAPI/14.1.2/
36
+ Project-URL: Documentation, https://documentation.smartmt.com/MastaAPI/14.1.4/
37
37
  Project-URL: Homepage, https://www.smartmt.com/
38
38
  Description-Content-Type: text/markdown
39
39
 
40
40
  <h1 align="center">
41
- <img src="https://documentation.smartmt.com/MastaAPI/14.1.2/images/smt_logo.png" width="150" alt="SMT"><br>
42
- <img src="https://documentation.smartmt.com/MastaAPI/14.1.2/images/MASTA_14_logo.png" width="400" alt="Mastapy">
41
+ <img src="https://documentation.smartmt.com/MastaAPI/14.1.4/images/smt_logo.png" width="150" alt="SMT"><br>
42
+ <img src="https://documentation.smartmt.com/MastaAPI/14.1.4/images/MASTA_14_logo.png" width="400" alt="Mastapy">
43
43
  </h1><br>
44
44
 
45
45
  [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) [![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
@@ -48,7 +48,7 @@ Mastapy is the Python scripting API for MASTA.
48
48
 
49
49
  - **Website**: https://www.smartmt.com/
50
50
  - **Support**: https://support.smartmt.com/
51
- - **Documentation**: https://documentation.smartmt.com/MastaAPI/14.1.2/
51
+ - **Documentation**: https://documentation.smartmt.com/MastaAPI/14.1.4/
52
52
 
53
53
 
54
54
  ### Features
@@ -61,77 +61,6 @@ Mastapy is the Python scripting API for MASTA.
61
61
 
62
62
  ### Release Information
63
63
 
64
- #### Major Changes
65
-
66
- - Added support for Python 3.13.
67
- - Dropped support for Python 3.7.
68
- - Added support for `ListWithSelectedItem` in scripted properties.
69
-
70
64
  #### Minor Changes
71
65
 
72
- - Replaced `ptvsd` with `debugpy` as a dependency for Python 3.13 onwards. MASTA will now choose `debugpy` over `ptvsd` for debugging if it is available.
73
- - Removed the `start_debugging` method and `DebugEnvironment` enum.
74
- - Replaced the `Range` type with `tuple[float, float]`.
75
- - Replaced the `IntegerRange` type with `tuple[int, int]`.
76
66
  - Various improvements and bug fixes.
77
-
78
- #### List With Selected Items
79
-
80
- This release includes a new `ListWithSelectedItem` type that can be used to add drop down menus to your custom editors in MASTA. It supports a variety of basic types (`bool`, `float`, `int`, `str` and `complex`) as well as API types (e.g. `Design`.)
81
-
82
- The easiest way of creating a list with selected item scripted property is to specify the return type as a `ListWithSelectedItem`.
83
-
84
- ```python
85
- from mastapy import masta_property, ListWithSelectedItem
86
-
87
- @masta_property(...)
88
- def my_property(...) -> ListWithSelectedItem:
89
- return 5.0
90
- ```
91
-
92
- If the return type of a scripted property is `ListWithSelectedItem` then the returned value will be automatically promoted to a list with selected item.
93
-
94
- To get correct typing information, you can use one of the built-in types. The following example demonstrates this for a `float`:
95
-
96
- ```python
97
- @my_property.setter
98
- def my_property(..., value: ListWithSelectedItem.Float) -> None:
99
- ...
100
- ```
101
-
102
- To populate the drop-down list with values, you will need to instantiate one of the available list with selected item types yourself.
103
-
104
- ```python
105
- from mastapy import masta_property, ListWithSelectedItem
106
-
107
- @masta_property(...)
108
- def my_property(...) -> ListWithSelectedItem.Float:
109
- return ListWithSelectedItem.Float(5.0, [1.0, 2.0, 3.0, 4.0])
110
- ```
111
-
112
- You cannot instantiate `ListWithSelectedItem` directly. If your selected value (`5.0` in this example) is not in the list of available values, it will be automatically appended.
113
-
114
- To get typing information for a list with selected item API type, you need to create a class stub that subclasses both your API type and `ListWithSelectedItem`. The following example shows how to do this for a `Design` list with selected item:
115
-
116
- ```python
117
- class ListWithSelectedItemDatum(Design, ListWithSelectedItem):
118
- pass
119
-
120
- @my_property.setter
121
- def my_property(..., value: ListWithSelectedItemDesign) -> None:
122
- ...
123
- ```
124
-
125
- You can also instantiate your custom type.
126
-
127
- ```python
128
- from mastapy import masta_property, ListWithSelectedItem
129
-
130
- class ListWithSelectedItemDatum(Design, ListWithSelectedItem):
131
- pass
132
-
133
- @masta_property(...)
134
- def my_property(...) -> ListWithSelectedItemDesign:
135
- ...
136
- return ListWithSelectedItemDesign(design0, [design1, design2])
137
- ```
@@ -20,7 +20,7 @@ mastapy/_private/_internal/class_property.py,sha256=ZD6spv6ZAldWcsK1ybpbid5P45I-
20
20
  mastapy/_private/_internal/constructor.py,sha256=-lBU9_ER5iZ5eUXA_lkSQ9SFppf79ZeWm82vBvXhwQc,1528
21
21
  mastapy/_private/_internal/constructor_map.py,sha256=FKCptUrnBKrDWUvpGgWDwy6WfICiziPTflhURbGFegk,3159828
22
22
  mastapy/_private/_internal/conversion.py,sha256=QrRrgPRUuzJSyG9P6ojpVe0W4_Xnra9NDQfYBooSdK8,26153
23
- mastapy/_private/_internal/core.py,sha256=MDsbOYN5vkKitm84WN_0J8AZO-V2s5lnjJ-Hyo2iH00,30591
23
+ mastapy/_private/_internal/core.py,sha256=kXq6kw0nBf0Td0wB02bCIOpJi4y75RySeHX_VJ3pCl4,30614
24
24
  mastapy/_private/_internal/custom_warnings.py,sha256=8WvWCThKhvqs1WKIoiHnqWXP7FV1ieuKGBBybUF96p4,222
25
25
  mastapy/_private/_internal/dataclasses.py,sha256=86uR6gfYQSxZliLjaWF5VvbyBWzw9ojKLYSo2WdD0IY,3198
26
26
  mastapy/_private/_internal/deprecation.py,sha256=riT97SpMPLzIdlQNml22U4PT3DQMcg6cc5A61Weed30,1786
@@ -268,7 +268,7 @@ mastapy/_private/_internal/sentinels.py,sha256=L_ibd3s8-FRJYQqHc7AwTLbqLAr7EWGb6
268
268
  mastapy/_private/_internal/tuple_with_name.py,sha256=PPpSho04giLWf9yZc5EoP0jporzCRgoZpZN9paGKfo0,1580
269
269
  mastapy/_private/_internal/type_enforcement.py,sha256=qqEE2_d7AVvadOQtg46nZ6lWmw-VihMhyPKVzk3es8w,9248
270
270
  mastapy/_private/_internal/utility.py,sha256=OWd7sjtevMoojJRge1_HnqHt_tH6uSC7YaaATAW8MfE,3856
271
- mastapy/_private/_internal/version.py,sha256=_dtaDc7yWS98UPZYVmgR4h77So89Hwl24kmjINBHagk,134
271
+ mastapy/_private/_internal/version.py,sha256=60xB6mpBnbEjGbw-gKGMdxGbnX4bkZMLMO-4aS3KXcQ,134
272
272
  mastapy/_private/_lib/__init__.py,sha256=TYhaKQtSf8hN5D_trQ2tnh4Hm3H1seOnN4bo9iYHz3U,47
273
273
  mastapy/_private/_lib/net462/__init__.py,sha256=TYhaKQtSf8hN5D_trQ2tnh4Hm3H1seOnN4bo9iYHz3U,47
274
274
  mastapy/_private/_lib/net462/ClrLoader.dll,sha256=R6U3AlfHucz7gqm1yHj50N2ychovEoQTozcQWWdjv5w,8192
@@ -8031,7 +8031,7 @@ mastapy/_private/utility/modal_analysis/gears/_1868.py,sha256=bbhFfqm2EH-zRTrXoo
8031
8031
  mastapy/_private/utility/modal_analysis/gears/__init__.py,sha256=kukmSG--3Z90nmFreTm4ihZZ177dv3rw3IwVpsB9Hm4,19
8032
8032
  mastapy/_private/utility/model_validation/_1850.py,sha256=idDTQUc2_wlSEwix2VJdg7SpzSlTjVAimXPsYRmd9kw,3003
8033
8033
  mastapy/_private/utility/model_validation/_1851.py,sha256=azu7oLqkHL17zVdMi3IST6SyD9ydbmR4cTIKDTw_iK0,1149
8034
- mastapy/_private/utility/model_validation/_1852.py,sha256=YFgBFKXXBsisvJSH1hO6s2sLdFWi3pR8BkKqeKT7_Fw,9398
8034
+ mastapy/_private/utility/model_validation/_1852.py,sha256=X6-S0vyNCaKDTIX8yhw7htIDfx1zkzDFwdT_wshFRO4,9572
8035
8035
  mastapy/_private/utility/model_validation/_1853.py,sha256=LeAmQ_-2FtywCjAnt-LlfYxZToIWsocS8uv0Ls7FjNU,3417
8036
8036
  mastapy/_private/utility/model_validation/_1854.py,sha256=1reAA-bXFnmxgpRB5Vw3yNpwjMbR7036hqsXbf_MaZQ,1303
8037
8037
  mastapy/_private/utility/model_validation/_1855.py,sha256=jK9rSoLVM_jK3GLnymsw-sRqNO7xupsLKD2ETQ1nWzs,3614
@@ -8249,7 +8249,7 @@ mastapy/_private/utility/vectors/_1896.py,sha256=ySUcyp_6Rw3SNMUkfHjN6nGAsvs4LdT
8249
8249
  mastapy/_private/utility/vectors/__init__.py,sha256=kukmSG--3Z90nmFreTm4ihZZ177dv3rw3IwVpsB9Hm4,19
8250
8250
  mastapy/_private/utility_gui/_1908.py,sha256=aDpRZuNqvvXixt8mVLN0_4JT84Wwzi387LVZ4hTegJg,14651
8251
8251
  mastapy/_private/utility_gui/_1909.py,sha256=o_vq0fKLhU3Wqa_CjUs_58kv7LZ6yFoGNm1C7XAhgGU,12026
8252
- mastapy/_private/utility_gui/_1910.py,sha256=x9Bk62DxuItxI5OIoOr0o5taBtGPLYNZkyE0G2nRO9g,6951
8252
+ mastapy/_private/utility_gui/_1910.py,sha256=k_WnMOoWXD6sY1AIG7NQUb-3xzxL511NVrYotsJ9XMM,7255
8253
8253
  mastapy/_private/utility_gui/_1911.py,sha256=X4mnjetK1GMfqJ8GV6nEypWSuOnpX_rNr_vj8lJqrmU,3037
8254
8254
  mastapy/_private/utility_gui/_1912.py,sha256=E6xDnRNmj0FnbQ9BBiNjxpq1dpqUaEeK5M5QY-qFKnM,9569
8255
8255
  mastapy/_private/utility_gui/__init__.py,sha256=kukmSG--3Z90nmFreTm4ihZZ177dv3rw3IwVpsB9Hm4,19
@@ -8531,6 +8531,6 @@ mastapy/utility/vectors/__init__.py,sha256=r8LxYDfuyCpoFwkzyqQEGRcxADn_La-zz6V7C
8531
8531
  mastapy/utility_gui/__init__.py,sha256=yaGW2rAVO5X7PohpNMMtTQLBzGxX6dekMQ6uOw80h3s,1161
8532
8532
  mastapy/utility_gui/charts/__init__.py,sha256=RRh7dOoPs0FewlyaWuQmHUR7gtJ9eggOF9udKg074kA,3256
8533
8533
  mastapy/utility_gui/databases/__init__.py,sha256=hwo7WYEANqPT_uf9jzzqtcRlUXttDzI7gyQmTWVgES4,553
8534
- mastapy-14.1.2b2.dist-info/METADATA,sha256=sugRVpBawHN65LrmK5lVjc4phDT8WLPcRl9iPzxoh-g,6141
8535
- mastapy-14.1.2b2.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
8536
- mastapy-14.1.2b2.dist-info/RECORD,,
8534
+ mastapy-14.1.4.dist-info/METADATA,sha256=pEInMY21OBsRQ0A5i7sRl-ihxOLnag1K-rP6HXdbbP4,3397
8535
+ mastapy-14.1.4.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
8536
+ mastapy-14.1.4.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.1.2
2
+ Generator: poetry-core 2.1.3
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any