mastapy 14.1.1b1__py3-none-any.whl → 14.1.2__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.1"
7
- __api_version__ = "14.1.1"
6
+ __version__ = "14.1.2"
7
+ __api_version__ = "14.1.2"
@@ -7,6 +7,8 @@ from typing import TYPE_CHECKING, ClassVar
7
7
  from mastapy._private._internal import constructor, conversion, utility
8
8
  from mastapy._private._internal.cast_exception import CastException
9
9
  from mastapy._private._internal.dataclasses import extended_dataclass
10
+ from mastapy._private._internal.implicit import overridable
11
+ from mastapy._private._internal.overridable_constructor import _unpack_overridable
10
12
  from mastapy._private._internal.python_net import (
11
13
  python_net_import,
12
14
  pythonnet_property_get,
@@ -20,7 +22,7 @@ _ANALYSIS_SETTINGS_ITEM = python_net_import(
20
22
  )
21
23
 
22
24
  if TYPE_CHECKING:
23
- from typing import Any, Type, TypeVar
25
+ from typing import Any, Tuple, Type, TypeVar, Union
24
26
 
25
27
  from mastapy._private.nodal_analysis import _87, _88
26
28
 
@@ -76,6 +78,31 @@ class AnalysisSettingsItem(_1890.NamedDatabaseItem):
76
78
 
77
79
  self.wrapped.reference_count += 1
78
80
 
81
+ @property
82
+ def eigenvalue_tolerance(self: "Self") -> "overridable.Overridable_float":
83
+ """Overridable[float]"""
84
+ temp = pythonnet_property_get(self.wrapped, "EigenvalueTolerance")
85
+
86
+ if temp is None:
87
+ return 0.0
88
+
89
+ return constructor.new_from_mastapy(
90
+ "mastapy._private._internal.implicit.overridable", "Overridable_float"
91
+ )(temp)
92
+
93
+ @eigenvalue_tolerance.setter
94
+ @enforce_parameter_types
95
+ def eigenvalue_tolerance(
96
+ self: "Self", value: "Union[float, Tuple[float, bool]]"
97
+ ) -> None:
98
+ wrapper_type = overridable.Overridable_float.wrapper_type()
99
+ enclosed_type = overridable.Overridable_float.implicit_type()
100
+ value, is_overridden = _unpack_overridable(value)
101
+ value = wrapper_type[enclosed_type](
102
+ enclosed_type(value) if value is not None else 0.0, is_overridden
103
+ )
104
+ pythonnet_property_set(self.wrapped, "EigenvalueTolerance", value)
105
+
79
106
  @property
80
107
  def gear_mesh_nodes_per_unit_length_to_diameter_ratio(self: "Self") -> "float":
81
108
  """float"""
@@ -99,6 +126,23 @@ class AnalysisSettingsItem(_1890.NamedDatabaseItem):
99
126
  float(value) if value is not None else 0.0,
100
127
  )
101
128
 
129
+ @property
130
+ def log_steps(self: "Self") -> "bool":
131
+ """bool"""
132
+ temp = pythonnet_property_get(self.wrapped, "LogSteps")
133
+
134
+ if temp is None:
135
+ return False
136
+
137
+ return temp
138
+
139
+ @log_steps.setter
140
+ @enforce_parameter_types
141
+ def log_steps(self: "Self", value: "bool") -> None:
142
+ pythonnet_property_set(
143
+ self.wrapped, "LogSteps", bool(value) if value is not None else False
144
+ )
145
+
102
146
  @property
103
147
  def maximum_nodes_for_nvh_analysis(self: "Self") -> "int":
104
148
  """int"""
@@ -158,6 +202,31 @@ class AnalysisSettingsItem(_1890.NamedDatabaseItem):
158
202
  int(value) if value is not None else 0,
159
203
  )
160
204
 
205
+ @property
206
+ def mode_shape_tolerance(self: "Self") -> "overridable.Overridable_float":
207
+ """Overridable[float]"""
208
+ temp = pythonnet_property_get(self.wrapped, "ModeShapeTolerance")
209
+
210
+ if temp is None:
211
+ return 0.0
212
+
213
+ return constructor.new_from_mastapy(
214
+ "mastapy._private._internal.implicit.overridable", "Overridable_float"
215
+ )(temp)
216
+
217
+ @mode_shape_tolerance.setter
218
+ @enforce_parameter_types
219
+ def mode_shape_tolerance(
220
+ self: "Self", value: "Union[float, Tuple[float, bool]]"
221
+ ) -> None:
222
+ wrapper_type = overridable.Overridable_float.wrapper_type()
223
+ enclosed_type = overridable.Overridable_float.implicit_type()
224
+ value, is_overridden = _unpack_overridable(value)
225
+ value = wrapper_type[enclosed_type](
226
+ enclosed_type(value) if value is not None else 0.0, is_overridden
227
+ )
228
+ pythonnet_property_set(self.wrapped, "ModeShapeTolerance", value)
229
+
161
230
  @property
162
231
  def overwrite_advanced_system_deflection_load_cases_created_for_harmonic_excitations(
163
232
  self: "Self",
@@ -39,9 +39,11 @@ if TYPE_CHECKING:
39
39
  _2943,
40
40
  _2945,
41
41
  _2946,
42
+ _2950,
42
43
  _2951,
43
44
  _2956,
44
45
  _2959,
46
+ _2960,
45
47
  _2962,
46
48
  _2966,
47
49
  _2968,
@@ -514,6 +516,46 @@ class AbstractAssemblyCompoundSystemDeflection(_3007.PartCompoundSystemDeflectio
514
516
 
515
517
  self.wrapped.reference_count += 1
516
518
 
519
+ @property
520
+ def all_components(self: "Self") -> "List[_2950.ComponentCompoundSystemDeflection]":
521
+ """List[mastapy.system_model.analyses_and_results.system_deflections.compound.ComponentCompoundSystemDeflection]
522
+
523
+ Note:
524
+ This property is readonly.
525
+ """
526
+ temp = pythonnet_property_get(self.wrapped, "AllComponents")
527
+
528
+ if temp is None:
529
+ return None
530
+
531
+ value = conversion.pn_to_mp_objects_in_list(temp)
532
+
533
+ if value is None:
534
+ return None
535
+
536
+ return value
537
+
538
+ @property
539
+ def all_connections(
540
+ self: "Self",
541
+ ) -> "List[_2960.ConnectionCompoundSystemDeflection]":
542
+ """List[mastapy.system_model.analyses_and_results.system_deflections.compound.ConnectionCompoundSystemDeflection]
543
+
544
+ Note:
545
+ This property is readonly.
546
+ """
547
+ temp = pythonnet_property_get(self.wrapped, "AllConnections")
548
+
549
+ if temp is None:
550
+ return None
551
+
552
+ value = conversion.pn_to_mp_objects_in_list(temp)
553
+
554
+ if value is None:
555
+ return None
556
+
557
+ return value
558
+
517
559
  @property
518
560
  def assembly_analysis_cases(
519
561
  self: "Self",
@@ -779,6 +779,34 @@ class ComponentCompoundSystemDeflection(_3007.PartCompoundSystemDeflection):
779
779
 
780
780
  self.wrapped.reference_count += 1
781
781
 
782
+ @property
783
+ def energy_lost(self: "Self") -> "float":
784
+ """float
785
+
786
+ Note:
787
+ This property is readonly.
788
+ """
789
+ temp = pythonnet_property_get(self.wrapped, "EnergyLost")
790
+
791
+ if temp is None:
792
+ return 0.0
793
+
794
+ return temp
795
+
796
+ @property
797
+ def energy_lost_contribution(self: "Self") -> "float":
798
+ """float
799
+
800
+ Note:
801
+ This property is readonly.
802
+ """
803
+ temp = pythonnet_property_get(self.wrapped, "EnergyLostContribution")
804
+
805
+ if temp is None:
806
+ return 0.0
807
+
808
+ return temp
809
+
782
810
  @property
783
811
  def component_analysis_cases(
784
812
  self: "Self",
@@ -512,6 +512,34 @@ class ConnectionCompoundSystemDeflection(_7698.ConnectionCompoundAnalysis):
512
512
 
513
513
  self.wrapped.reference_count += 1
514
514
 
515
+ @property
516
+ def energy_lost(self: "Self") -> "float":
517
+ """float
518
+
519
+ Note:
520
+ This property is readonly.
521
+ """
522
+ temp = pythonnet_property_get(self.wrapped, "EnergyLost")
523
+
524
+ if temp is None:
525
+ return 0.0
526
+
527
+ return temp
528
+
529
+ @property
530
+ def energy_lost_contribution(self: "Self") -> "float":
531
+ """float
532
+
533
+ Note:
534
+ This property is readonly.
535
+ """
536
+ temp = pythonnet_property_get(self.wrapped, "EnergyLostContribution")
537
+
538
+ if temp is None:
539
+ return 0.0
540
+
541
+ return temp
542
+
515
543
  @property
516
544
  def connection_analysis_cases(
517
545
  self: "Self",
@@ -110,20 +110,6 @@ class AbstractShaftFromCAD(_2562.ComponentFromCAD):
110
110
 
111
111
  return temp
112
112
 
113
- @property
114
- def length(self: "Self") -> "float":
115
- """float
116
-
117
- Note:
118
- This property is readonly.
119
- """
120
- temp = pythonnet_property_get(self.wrapped, "Length")
121
-
122
- if temp is None:
123
- return 0.0
124
-
125
- return temp
126
-
127
113
  @property
128
114
  def offset(self: "Self") -> "float":
129
115
  """float
@@ -105,23 +105,6 @@ class ClutchFromCAD(_2572.MountableComponentFromCAD):
105
105
  self.wrapped, "ClutchName", str(value) if value is not None else ""
106
106
  )
107
107
 
108
- @property
109
- def length(self: "Self") -> "float":
110
- """float"""
111
- temp = pythonnet_property_get(self.wrapped, "Length")
112
-
113
- if temp is None:
114
- return 0.0
115
-
116
- return temp
117
-
118
- @length.setter
119
- @enforce_parameter_types
120
- def length(self: "Self", value: "float") -> None:
121
- pythonnet_property_set(
122
- self.wrapped, "Length", float(value) if value is not None else 0.0
123
- )
124
-
125
108
  @property
126
109
  def cast_to(self: "Self") -> "_Cast_ClutchFromCAD":
127
110
  """Cast to another type.
@@ -7,7 +7,12 @@ from typing import TYPE_CHECKING, ClassVar
7
7
  from mastapy._private._internal import utility
8
8
  from mastapy._private._internal.cast_exception import CastException
9
9
  from mastapy._private._internal.dataclasses import extended_dataclass
10
- from mastapy._private._internal.python_net import python_net_import
10
+ from mastapy._private._internal.python_net import (
11
+ python_net_import,
12
+ pythonnet_property_get,
13
+ pythonnet_property_set,
14
+ )
15
+ from mastapy._private._internal.type_enforcement import enforce_parameter_types
11
16
  from mastapy._private.system_model.part_model.import_from_cad import _2563
12
17
 
13
18
  _COMPONENT_FROM_CAD = python_net_import(
@@ -185,6 +190,23 @@ class ComponentFromCAD(_2563.ComponentFromCADBase):
185
190
 
186
191
  self.wrapped.reference_count += 1
187
192
 
193
+ @property
194
+ def length(self: "Self") -> "float":
195
+ """float"""
196
+ temp = pythonnet_property_get(self.wrapped, "Length")
197
+
198
+ if temp is None:
199
+ return 0.0
200
+
201
+ return temp
202
+
203
+ @length.setter
204
+ @enforce_parameter_types
205
+ def length(self: "Self", value: "float") -> None:
206
+ pythonnet_property_set(
207
+ self.wrapped, "Length", float(value) if value is not None else 0.0
208
+ )
209
+
188
210
  @property
189
211
  def cast_to(self: "Self") -> "_Cast_ComponentFromCAD":
190
212
  """Cast to another type.
@@ -7,12 +7,7 @@ from typing import TYPE_CHECKING, ClassVar
7
7
  from mastapy._private._internal import utility
8
8
  from mastapy._private._internal.cast_exception import CastException
9
9
  from mastapy._private._internal.dataclasses import extended_dataclass
10
- from mastapy._private._internal.python_net import (
11
- python_net_import,
12
- pythonnet_property_get,
13
- pythonnet_property_set,
14
- )
15
- from mastapy._private._internal.type_enforcement import enforce_parameter_types
10
+ from mastapy._private._internal.python_net import python_net_import
16
11
  from mastapy._private.system_model.part_model.import_from_cad import _2565
17
12
 
18
13
  _CONCEPT_BEARING_FROM_CAD = python_net_import(
@@ -100,23 +95,6 @@ class ConceptBearingFromCAD(_2565.ConnectorFromCAD):
100
95
 
101
96
  self.wrapped.reference_count += 1
102
97
 
103
- @property
104
- def width(self: "Self") -> "float":
105
- """float"""
106
- temp = pythonnet_property_get(self.wrapped, "Width")
107
-
108
- if temp is None:
109
- return 0.0
110
-
111
- return temp
112
-
113
- @width.setter
114
- @enforce_parameter_types
115
- def width(self: "Self", value: "float") -> None:
116
- pythonnet_property_set(
117
- self.wrapped, "Width", float(value) if value is not None else 0.0
118
- )
119
-
120
98
  @property
121
99
  def cast_to(self: "Self") -> "_Cast_ConceptBearingFromCAD":
122
100
  """Cast to another type.
@@ -122,23 +122,6 @@ class PulleyFromCAD(_2572.MountableComponentFromCAD):
122
122
  self.wrapped, "OuterDiameter", float(value) if value is not None else 0.0
123
123
  )
124
124
 
125
- @property
126
- def width(self: "Self") -> "float":
127
- """float"""
128
- temp = pythonnet_property_get(self.wrapped, "Width")
129
-
130
- if temp is None:
131
- return 0.0
132
-
133
- return temp
134
-
135
- @width.setter
136
- @enforce_parameter_types
137
- def width(self: "Self", value: "float") -> None:
138
- pythonnet_property_set(
139
- self.wrapped, "Width", float(value) if value is not None else 0.0
140
- )
141
-
142
125
  @property
143
126
  def cast_to(self: "Self") -> "_Cast_PulleyFromCAD":
144
127
  """Cast to another type.
@@ -7,12 +7,7 @@ from typing import TYPE_CHECKING, ClassVar
7
7
  from mastapy._private._internal import utility
8
8
  from mastapy._private._internal.cast_exception import CastException
9
9
  from mastapy._private._internal.dataclasses import extended_dataclass
10
- from mastapy._private._internal.python_net import (
11
- python_net_import,
12
- pythonnet_property_get,
13
- pythonnet_property_set,
14
- )
15
- from mastapy._private._internal.type_enforcement import enforce_parameter_types
10
+ from mastapy._private._internal.python_net import python_net_import
16
11
  from mastapy._private.system_model.part_model.import_from_cad import _2565
17
12
 
18
13
  _RIGID_CONNECTOR_FROM_CAD = python_net_import(
@@ -100,23 +95,6 @@ class RigidConnectorFromCAD(_2565.ConnectorFromCAD):
100
95
 
101
96
  self.wrapped.reference_count += 1
102
97
 
103
- @property
104
- def length(self: "Self") -> "float":
105
- """float"""
106
- temp = pythonnet_property_get(self.wrapped, "Length")
107
-
108
- if temp is None:
109
- return 0.0
110
-
111
- return temp
112
-
113
- @length.setter
114
- @enforce_parameter_types
115
- def length(self: "Self", value: "float") -> None:
116
- pythonnet_property_set(
117
- self.wrapped, "Length", float(value) if value is not None else 0.0
118
- )
119
-
120
98
  @property
121
99
  def cast_to(self: "Self") -> "_Cast_RigidConnectorFromCAD":
122
100
  """Cast to another type.
@@ -280,31 +280,6 @@ class ProgramSettings(_1651.PerMachineSettings):
280
280
  self.wrapped, "ConfirmExit", bool(value) if value is not None else False
281
281
  )
282
282
 
283
- @property
284
- def eigenvalue_tolerance(self: "Self") -> "overridable.Overridable_float":
285
- """Overridable[float]"""
286
- temp = pythonnet_property_get(self.wrapped, "EigenvalueTolerance")
287
-
288
- if temp is None:
289
- return 0.0
290
-
291
- return constructor.new_from_mastapy(
292
- "mastapy._private._internal.implicit.overridable", "Overridable_float"
293
- )(temp)
294
-
295
- @eigenvalue_tolerance.setter
296
- @enforce_parameter_types
297
- def eigenvalue_tolerance(
298
- self: "Self", value: "Union[float, Tuple[float, bool]]"
299
- ) -> None:
300
- wrapper_type = overridable.Overridable_float.wrapper_type()
301
- enclosed_type = overridable.Overridable_float.implicit_type()
302
- value, is_overridden = _unpack_overridable(value)
303
- value = wrapper_type[enclosed_type](
304
- enclosed_type(value) if value is not None else 0.0, is_overridden
305
- )
306
- pythonnet_property_set(self.wrapped, "EigenvalueTolerance", value)
307
-
308
283
  @property
309
284
  def font_size(self: "Self") -> "float":
310
285
  """float"""
@@ -366,23 +341,6 @@ class ProgramSettings(_1651.PerMachineSettings):
366
341
  bool(value) if value is not None else False,
367
342
  )
368
343
 
369
- @property
370
- def log_steps(self: "Self") -> "bool":
371
- """bool"""
372
- temp = pythonnet_property_get(self.wrapped, "LogSteps")
373
-
374
- if temp is None:
375
- return False
376
-
377
- return temp
378
-
379
- @log_steps.setter
380
- @enforce_parameter_types
381
- def log_steps(self: "Self", value: "bool") -> None:
382
- pythonnet_property_set(
383
- self.wrapped, "LogSteps", bool(value) if value is not None else False
384
- )
385
-
386
344
  @property
387
345
  def maximum_number_of_files_to_store_in_history(self: "Self") -> "int":
388
346
  """int"""
@@ -487,31 +445,6 @@ class ProgramSettings(_1651.PerMachineSettings):
487
445
  int(value) if value is not None else 0,
488
446
  )
489
447
 
490
- @property
491
- def mode_shape_tolerance(self: "Self") -> "overridable.Overridable_float":
492
- """Overridable[float]"""
493
- temp = pythonnet_property_get(self.wrapped, "ModeShapeTolerance")
494
-
495
- if temp is None:
496
- return 0.0
497
-
498
- return constructor.new_from_mastapy(
499
- "mastapy._private._internal.implicit.overridable", "Overridable_float"
500
- )(temp)
501
-
502
- @mode_shape_tolerance.setter
503
- @enforce_parameter_types
504
- def mode_shape_tolerance(
505
- self: "Self", value: "Union[float, Tuple[float, bool]]"
506
- ) -> None:
507
- wrapper_type = overridable.Overridable_float.wrapper_type()
508
- enclosed_type = overridable.Overridable_float.implicit_type()
509
- value, is_overridden = _unpack_overridable(value)
510
- value = wrapper_type[enclosed_type](
511
- enclosed_type(value) if value is not None else 0.0, is_overridden
512
- )
513
- pythonnet_property_set(self.wrapped, "ModeShapeTolerance", value)
514
-
515
448
  @property
516
449
  def number_of_cpu_cores(self: "Self") -> "int":
517
450
  """int
@@ -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.1b1
3
+ Version: 14.1.2
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.1/
36
+ Project-URL: Documentation, https://documentation.smartmt.com/MastaAPI/14.1.2/
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.1/images/smt_logo.png" width="150" alt="SMT"><br>
42
- <img src="https://documentation.smartmt.com/MastaAPI/14.1.1/images/MASTA_14_logo.png" width="400" alt="Mastapy">
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">
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.1/
51
+ - **Documentation**: https://documentation.smartmt.com/MastaAPI/14.1.2/
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=kSO_DEVAC8AzzbQRsZ3ijAtvhS6AXi-5T6HBYeXvyPQ,134
271
+ mastapy/_private/_internal/version.py,sha256=_dtaDc7yWS98UPZYVmgR4h77So89Hwl24kmjINBHagk,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
@@ -2154,7 +2154,7 @@ mastapy/_private/nodal_analysis/_49.py,sha256=Ta7US3zuBw4OylDsVZgrt0GNFtAEq0vGlT
2154
2154
  mastapy/_private/nodal_analysis/_50.py,sha256=FGRIcOrE6BOJQ04HMwDsjja94r3nnJmcKWO3ySe0IFs,2734
2155
2155
  mastapy/_private/nodal_analysis/_51.py,sha256=CE6C93k37rUIXlZ4SMJIAi0ovzuMbcU6AqkXfVRyWlw,2188
2156
2156
  mastapy/_private/nodal_analysis/_52.py,sha256=l_txi6XUyCVKBAY8k8-WmJHIFSj9_LTadJg1ljj_Z_g,3101
2157
- mastapy/_private/nodal_analysis/_53.py,sha256=5FAoF5o-QhhFgsKxnergjBTMCjlU7eU2mscGa1vyo_4,12612
2157
+ mastapy/_private/nodal_analysis/_53.py,sha256=OqIMXBuS_Yi9Vd4T3LyAsL8U4O8A5U5ijeokZoNOz6c,15225
2158
2158
  mastapy/_private/nodal_analysis/_54.py,sha256=Cjwkj_rN0hEZN6QhbzalbJGF1QuNlzCz7aszswh8rG0,3081
2159
2159
  mastapy/_private/nodal_analysis/_55.py,sha256=zjehcy4CAP3u3dIjw79VKK2rf7_0LOBs-3b21sA8ljE,1293
2160
2160
  mastapy/_private/nodal_analysis/_56.py,sha256=OROJwXlM4UTr7s30fIaaD6zedczytp43xFHihn46Fec,1289
@@ -7350,7 +7350,7 @@ mastapy/_private/system_model/analyses_and_results/system_deflections/_2913.py,s
7350
7350
  mastapy/_private/system_model/analyses_and_results/system_deflections/_2914.py,sha256=HWb_KbZR3HjwPAD-vft22iuXSkO17OqKktgyRVdJwzM,12119
7351
7351
  mastapy/_private/system_model/analyses_and_results/system_deflections/_2915.py,sha256=mgYogr0U82ojqYnFVnWXkI8BeNAWRtfy4dGuTtzx4dk,9080
7352
7352
  mastapy/_private/system_model/analyses_and_results/system_deflections/__init__.py,sha256=kukmSG--3Z90nmFreTm4ihZZ177dv3rw3IwVpsB9Hm4,19
7353
- mastapy/_private/system_model/analyses_and_results/system_deflections/compound/_2925.py,sha256=JAIq-gVDaqlegW483gmAJw7d1FjJQCyoXEuPRANkfxg,19691
7353
+ mastapy/_private/system_model/analyses_and_results/system_deflections/compound/_2925.py,sha256=nQyAXixrvMGkrUE5aAE3hy9A7ZE_0trRi8wbNK_L5Js,20866
7354
7354
  mastapy/_private/system_model/analyses_and_results/system_deflections/compound/_2926.py,sha256=jk04xfUiGvi9hLeImJQXWgoysSowfVvTbkRX7VQqzUg,7083
7355
7355
  mastapy/_private/system_model/analyses_and_results/system_deflections/compound/_2927.py,sha256=3Jw8qsuuf0DzZrBNmattC88PcXPR-bibsH2kN0mQ7MQ,7587
7356
7356
  mastapy/_private/system_model/analyses_and_results/system_deflections/compound/_2928.py,sha256=ywxGzGjVub3kPPHX3u93YcqSlYSTcUjD1G9TO5M9Vzs,8640
@@ -7375,7 +7375,7 @@ mastapy/_private/system_model/analyses_and_results/system_deflections/compound/_
7375
7375
  mastapy/_private/system_model/analyses_and_results/system_deflections/compound/_2947.py,sha256=-u1OyB5cw0YR0NYBiqla8-6buDR7d835QgmqHRfStko,7548
7376
7376
  mastapy/_private/system_model/analyses_and_results/system_deflections/compound/_2948.py,sha256=exwblfbwVyDVZ_QAtJVJTt7oEF1kY5EqoPxii4NSVtQ,7124
7377
7377
  mastapy/_private/system_model/analyses_and_results/system_deflections/compound/_2949.py,sha256=d84KE5lXk2vkKu_yP_pg7snaKtm7_BPiyIDgHJpkn7Q,8157
7378
- mastapy/_private/system_model/analyses_and_results/system_deflections/compound/_2950.py,sha256=XDvlcDmZDzTSd3gnVlwuF6sKJAY2HOzqYvpHlWufht8,28550
7378
+ mastapy/_private/system_model/analyses_and_results/system_deflections/compound/_2950.py,sha256=voSYoNKjXOthbscebkMvAPvBiHW-Ykujd8GnQgcuS6Q,29163
7379
7379
  mastapy/_private/system_model/analyses_and_results/system_deflections/compound/_2951.py,sha256=EQAOFPtV2ID2Z8CnmhNhLAbtAYR2eWCkp9aVdwKETrY,7697
7380
7380
  mastapy/_private/system_model/analyses_and_results/system_deflections/compound/_2952.py,sha256=i3UlOo6TaMTcW_DcXLqJOGCQWklD-jVbQ7R7Zu_Ju6Y,7802
7381
7381
  mastapy/_private/system_model/analyses_and_results/system_deflections/compound/_2953.py,sha256=-H4HaqXWLXHGoWNgunrLf2ly55uXHikjbjnzcG6cfHQ,7351
@@ -7385,7 +7385,7 @@ mastapy/_private/system_model/analyses_and_results/system_deflections/compound/_
7385
7385
  mastapy/_private/system_model/analyses_and_results/system_deflections/compound/_2957.py,sha256=uw9exPgp5_zfNKfEA5aocRH76OKlqxATo-1_ihNgqI4,14602
7386
7386
  mastapy/_private/system_model/analyses_and_results/system_deflections/compound/_2958.py,sha256=JWVIpigCplHPjjS5GsRIB-toToUcfJ3F5C-EUPKIXQ4,11877
7387
7387
  mastapy/_private/system_model/analyses_and_results/system_deflections/compound/_2959.py,sha256=qRu18MPgrlO348qZeqxUdyHDHJs852xaaPkQNp7yZ28,12086
7388
- mastapy/_private/system_model/analyses_and_results/system_deflections/compound/_2960.py,sha256=grpUT5Cs6F1UTiHv8yl6gpqnPMnRDnrou9rRUKmZvFg,19798
7388
+ mastapy/_private/system_model/analyses_and_results/system_deflections/compound/_2960.py,sha256=60WiqLfK-SmNAg4sSAFslm7EetXoJ6CXfBbF1qlBQAc,20411
7389
7389
  mastapy/_private/system_model/analyses_and_results/system_deflections/compound/_2961.py,sha256=NumxwC6yyZnIIP64lebNtX0CBmR2H55BlspB9dgHgfw,7341
7390
7390
  mastapy/_private/system_model/analyses_and_results/system_deflections/compound/_2962.py,sha256=vBWATDs7h4NrdEXnPB2xWDwkQglWwG8evrEVIyi9EbQ,8163
7391
7391
  mastapy/_private/system_model/analyses_and_results/system_deflections/compound/_2963.py,sha256=nWifoQyD55gJs8lHXw0yeAgb5PY3wjsc9-6As5L5VUU,8377
@@ -7916,11 +7916,11 @@ mastapy/_private/system_model/part_model/gears/supercharger_rotor_set/_2632.py,s
7916
7916
  mastapy/_private/system_model/part_model/gears/supercharger_rotor_set/_2633.py,sha256=wrgugVmMEHnroY8nKmYqyCojlZzq8q6sfod-lekiulA,3286
7917
7917
  mastapy/_private/system_model/part_model/gears/supercharger_rotor_set/_2634.py,sha256=qrCtG8qtsVL-Lfe55YLdjSmpc1ayQofyM1hrkeiILZ4,1399
7918
7918
  mastapy/_private/system_model/part_model/gears/supercharger_rotor_set/__init__.py,sha256=kukmSG--3Z90nmFreTm4ihZZ177dv3rw3IwVpsB9Hm4,19
7919
- mastapy/_private/system_model/part_model/import_from_cad/_2560.py,sha256=dLO_HK-dbmNjFQr8hlJt8h5q3zsbGoeDLR58v-RhC0E,4592
7920
- mastapy/_private/system_model/part_model/import_from_cad/_2561.py,sha256=t62jRRdJdIzkjko_N4Emi0DJiGltH6B7ZqU9R9mkjtM,4073
7921
- mastapy/_private/system_model/part_model/import_from_cad/_2562.py,sha256=691SmxA34BzLotXblUCRH5q3VbAcxIDUAvYlBy_4zXI,6705
7919
+ mastapy/_private/system_model/part_model/import_from_cad/_2560.py,sha256=Eeeg__BPABuemSBMu2RcH_BcVv6SWyJsB4OpD8RDQPc,4307
7920
+ mastapy/_private/system_model/part_model/import_from_cad/_2561.py,sha256=U9mnsEuB5ZPeRenuGbIRLImQ-9zT97KJ1un3roTwcnQ,3624
7921
+ mastapy/_private/system_model/part_model/import_from_cad/_2562.py,sha256=DBDAd1A3RgvGLllqntQevMlQgIkpg5kTBJDOQc42IpU,7304
7922
7922
  mastapy/_private/system_model/part_model/import_from_cad/_2563.py,sha256=WQlgGWLgfPuTDsYbvzgJap-S3PeA5M_ynlLVVAPhwHw,7662
7923
- mastapy/_private/system_model/part_model/import_from_cad/_2564.py,sha256=ky9hq9CcUPg7hPoH0zb82ZJ1lgxqFnC2rKpw0HIKtqU,4044
7923
+ mastapy/_private/system_model/part_model/import_from_cad/_2564.py,sha256=p3lOlpCRKo7mq9PWYf-cBqKIghNXg3xMl_A63FYRObc,3450
7924
7924
  mastapy/_private/system_model/part_model/import_from_cad/_2565.py,sha256=CMr9-2WGvzn1jLpNRXoO6GzaFpGYCZQemjLTWGJ9CRM,5081
7925
7925
  mastapy/_private/system_model/part_model/import_from_cad/_2566.py,sha256=aDwUvrjIzqS5uSLN737Owt_BuO2Npr_mQYCHW43FoRg,13708
7926
7926
  mastapy/_private/system_model/part_model/import_from_cad/_2567.py,sha256=eWh8KQhAyfqiV0k6fG5-nRO7TDXrECSWNoeZiWIe1Sg,4705
@@ -7930,8 +7930,8 @@ mastapy/_private/system_model/part_model/import_from_cad/_2570.py,sha256=FztNw4C
7930
7930
  mastapy/_private/system_model/part_model/import_from_cad/_2571.py,sha256=XsLMxArzMTk7P0YDShMJX-gNDGvbAdFqt5eSDY4PpNE,1237
7931
7931
  mastapy/_private/system_model/part_model/import_from_cad/_2572.py,sha256=K7y3O8EnVZXYY8qxcoa6iQMULch1oeSR8W-G-VzHZQU,6660
7932
7932
  mastapy/_private/system_model/part_model/import_from_cad/_2573.py,sha256=HTk8oYnoNp8fIwkPY1h17uwWDcTqOtQkYR29W507S2E,3710
7933
- mastapy/_private/system_model/part_model/import_from_cad/_2574.py,sha256=A_f0DJaTne7k0NgfS5xMyKgOEYYWiP8p7KnK4y24J9k,4585
7934
- mastapy/_private/system_model/part_model/import_from_cad/_2575.py,sha256=MTl0bfd84qHEydmnK8NQ7yYYELliJZF4cvxknULR68I,4049
7933
+ mastapy/_private/system_model/part_model/import_from_cad/_2574.py,sha256=HnEKwnO_70Jjh7OnpdDUTd3WJ9ZiN_Vyhx71rL81MBQ,4141
7934
+ mastapy/_private/system_model/part_model/import_from_cad/_2575.py,sha256=8EBjl-E9Bh_YDZEEwLqG3KPzxs7Dd-VvMYn0kHsoB-U,3450
7935
7935
  mastapy/_private/system_model/part_model/import_from_cad/_2576.py,sha256=rEcESbGdTsv66vlapReZPKpsPjnVGYTAFlj5f1Bn1VU,4970
7936
7936
  mastapy/_private/system_model/part_model/import_from_cad/_2577.py,sha256=MspoAJjZ8pJ_MudgvNMkCdRTdfP7wz09i2meyiuMK8U,3599
7937
7937
  mastapy/_private/system_model/part_model/import_from_cad/_2578.py,sha256=omuc5C7iN2foHBKgqBgF61Z6eY3ZPG6At-ihajEH1-I,4447
@@ -7975,7 +7975,7 @@ mastapy/_private/utility/_1649.py,sha256=7Qf2CVtQ9EVD2hehbW9q_KddacAwe-Ypg0lUopN
7975
7975
  mastapy/_private/utility/_1650.py,sha256=DVB6fcJdhV0i9lmLpW6eNVLu4noaVhFSmE7zxFPCqjI,4182
7976
7976
  mastapy/_private/utility/_1651.py,sha256=LhUE2kRBApZDVm6pGcGizdi4BoWXhcJV18HJS-lr3u0,6353
7977
7977
  mastapy/_private/utility/_1652.py,sha256=wRSCiPGF4sgqo_er2W9KYIfxzT6XLqLSqJhYUIonJ1I,10656
7978
- mastapy/_private/utility/_1653.py,sha256=2hHHnekm3Plazye6rZPQElw4zaEy3GKhtpPIP_2v-mU,26793
7978
+ mastapy/_private/utility/_1653.py,sha256=i0P7tQdk1KRGzd7fgNGBC4QsHHSpgbWjKDU-uAqkjhE,24339
7979
7979
  mastapy/_private/utility/_1654.py,sha256=5yzsoiUPL6sig5TlR6RzmVaKodgU6z7-YVTRHEauocg,5349
7980
7980
  mastapy/_private/utility/_1655.py,sha256=bF7f6wV6u4OyRVwBGoT9hwCo284rjwFiQicwBuyL-jc,1233
7981
7981
  mastapy/_private/utility/_1656.py,sha256=hYGGYWqferSk1B3b7j1Uyu_RonsBBl5-TgzNEeA8zOA,6917
@@ -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.1b1.dist-info/METADATA,sha256=QVDaiZXcRqcrCu2VP7Vy0nIfyF8lCODeRU9iplVEtew,6141
8535
- mastapy-14.1.1b1.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
8536
- mastapy-14.1.1b1.dist-info/RECORD,,
8534
+ mastapy-14.1.2.dist-info/METADATA,sha256=7AHc9qUkCwEMW83ry--Z32yuIIy6t3Ry5X34Tl45CMA,3397
8535
+ mastapy-14.1.2.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
8536
+ mastapy-14.1.2.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.1.1
2
+ Generator: poetry-core 2.1.2
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any