Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ authors = [
]
requires-python = ">=3.11"
dependencies = [
"pydantic>=2.11.7",
"pydantic_core==2.27.2",
"pydantic==2.10.6",
"sectionproperties>=3.9.0",
]

Expand Down
2 changes: 1 addition & 1 deletion src/sectionproperties_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sectionproperties_tools
"""

__version__ = "0.3.1"
__version__ = "0.3.2"

from .extraction import (extract_properties, envelope_stress_results)
from .serialize import (
Expand Down
14 changes: 6 additions & 8 deletions src/sectionproperties_tools/extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,17 @@

def extract_properties(
analysis_section: Section,
subset_to_extract: Optional[str] = None,
subset_to_extract: Optional[list[str]] = None,
) -> dict[str, float]:
"""
Extracts the properties from the solved 'analysis_section'.

'analysis_section': a solved Section from sectionproperties.
'subset_to_extract': One of {"geometric", "warping", "plastic"}
The results extracted will be from one of these sets
of properties. If None, then all results will be extracted.
'properties_to_extract': If provided, will extract only the
properties from the provided list. If None, will extract
all sectionproperties.

'subset_to_extract': A list of properties to extract from
the analysis_section. The names of properties in the
solved section will depend on whether or not a non-
default material was assigned.
If None, then all results will be extracted.

The following properties can be specified when materials
are _not_ added to the section (i.e. a geometric analysis):
Expand Down