Skip to content

Commit b9b1f66

Browse files
committed
update deps, added subset_to_extract option from extract_properties
1 parent b2ed839 commit b9b1f66

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ authors = [
77
]
88
requires-python = ">=3.11"
99
dependencies = [
10-
"pydantic>=2.11.7",
10+
"pydantic_core==2.27.2",
11+
"pydantic==2.10.6",
1112
"sectionproperties>=3.9.0",
1213
]
1314

src/sectionproperties_tools/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
sectionproperties_tools
33
"""
44

5-
__version__ = "0.3.1"
5+
__version__ = "0.3.2"
66

77
from .extraction import (extract_properties, envelope_stress_results)
88
from .serialize import (

src/sectionproperties_tools/extraction.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,17 @@
66

77
def extract_properties(
88
analysis_section: Section,
9-
subset_to_extract: Optional[str] = None,
9+
subset_to_extract: Optional[list[str]] = None,
1010
) -> dict[str, float]:
1111
"""
1212
Extracts the properties from the solved 'analysis_section'.
1313
1414
'analysis_section': a solved Section from sectionproperties.
15-
'subset_to_extract': One of {"geometric", "warping", "plastic"}
16-
The results extracted will be from one of these sets
17-
of properties. If None, then all results will be extracted.
18-
'properties_to_extract': If provided, will extract only the
19-
properties from the provided list. If None, will extract
20-
all sectionproperties.
21-
15+
'subset_to_extract': A list of properties to extract from
16+
the analysis_section. The names of properties in the
17+
solved section will depend on whether or not a non-
18+
default material was assigned.
19+
If None, then all results will be extracted.
2220
2321
The following properties can be specified when materials
2422
are _not_ added to the section (i.e. a geometric analysis):

0 commit comments

Comments
 (0)