Sectionproperties

Latest version: v3.2.1

Safety actively analyzes 627763 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 5

3.0.2

This release restores the top reinforcement distribution for concrete_tee_sections() present in `sectionproperties` v2.1.5. It also includes some minor docs fixes, CI updates and dependency updates.
What's Changed

:bug: Fixes

* Fix concrete_tee_section() top bar distribution (325) robbievanleeuwen

:construction_worker: Continuous Integration

* Update noxfile.py with correct docs dependencies, fix double CI builds (327) robbievanleeuwen

:books: Documentation

* Fix links in documentation (326) robbievanleeuwen

:package: Dependencies

* Bump jupyter/nbconvert from 7.8.0 to 7.9.2 (328) robbievanleeuwen

**Full changelog:** [v3.0.1...v3.0.2](https://github.com/robbievanleeuwen/section-properties/compare/v3.0.1...v3.0.2)

3.0.1

This release addresses a bug with the concrete rectangular section side bars and bumps several python and github actions dependencies.

What's Changed

:bug: Fixes

* Fix concrete_rectangular_section() bug when n_side=1 (322) TLCFEM

:package: Dependencies

* Bump pypa/gh-action-pypi-publish from 1.5.0 to 1.8.10 (301) dependabot
* Bump actions/setup-python from 3 to 4 (304) dependabot
* Bump crazy-max/ghaction-github-labeler from 4.0.0 to 5.0.0 (305) dependabot
* Bump release-drafter/release-drafter from 5.20.0 to 5.24.0 (307) dependabot
* Bump actions/checkout from 3 to 4 (308) dependabot
* Bump salsify/action-detect-and-tag-new-version from 2.0.1 to 2.0.3 (319) dependabot
* Bump coverage (7.3.1 to 7.3.2), pyupgrade (3.13.0 to 3.14.0) and prettier (2.7.1 to 3.0.3) (323) robbievanleeuwen
* Bump codecov/codecov-action from 3.1.0 to 3.1.4 (320) dependabot

**Full changelog:** [v3.0.0...v3.0.1](https://github.com/robbievanleeuwen/section-properties/compare/v3.0.0...v3.0.1)

3.0.0

:star: Highlights

- New, unambiguous section property retrieval with `get()` [methods](https://sectionproperties.readthedocs.io/en/latest/user_guide/results.html#retrieving-section-properties), see an example [here](https://sectionproperties.readthedocs.io/en/latest/examples/results/get_results.html).
- Improved [stress plotting options](https://sectionproperties.readthedocs.io/en/latest/user_guide/results.html#plot-stress-contours) (new colorbar features, mesh opacity, plot selected materials), see an example [here](https://sectionproperties.readthedocs.io/en/latest/examples/results/plot_stress.html).
- Improved [documentation](https://sectionproperties.readthedocs.io/en/latest/index.html) style and automation.
- `sectionproperties` API now has full typing coverage.
- Significantly expanded [examples](https://sectionproperties.readthedocs.io/en/latest/examples.html) in the documentation.
- Add support for Python 3.11.
- Improved workflow, CI and contributor experience by introducing `poetry` and `nox`.

:boom: Breaking Changes

- Update section property `get()` methods behaviour as per 287 to circumvent confusion surrounding material weighted properties. An analysis without material properties uses the `get_{property}()` syntax, while an analysis with material properties typically uses the `get_e{property}()` syntax with the added option of retrieving transformed section properties. See [here](https://sectionproperties.readthedocs.io/en/latest/user_guide/results.html#retrieving-section-properties) for a list of the new `get()` methods and [here](https://sectionproperties.readthedocs.io/en/latest/user_guide/results.html#how-material-properties-affect-results) for a discussion surrounding this issue.
- Stress plotting methods have been simplified to improve maintainability and code repetition. You can now plot stress results by using the `plot_stress()` or `plot_stress_vector()` methods that belong to the `StressPost` object.
- ``get_stress_at_point()`` method removed, use the more versatile ``get_stress_at_points()`` method instead.
- Pythonic renaming of methods and variables, e.g. ``get_As()`` becomes ``get_as()`` for retrieving shear areas, moments and shears change from ``Mxx`` and ``Vx`` to ``mxx`` and ``vx``.
- Concrete section library - renamed argument names to be more pythonic, reinforcement now requires an area and diameter.
- Dropped support for Python 3.8 (289).

:rocket: Features

- Packaging and dependency management with poetry.
- Improve length/readability of imports by placing key classes in ``__init__.py`` files, e.g. ``from sectionproperties.pre.library.primitive_sections import rectangular_section`` becomes ``from sectionproperties.pre.library import rectangular_section``
- Significant analysis performance and readability improvements (293, 298) thanks to TLCFEM.
- Allow unlipped cee and zed sections (300), thanks to smith120bh.
- Export analysis results to fibre sections that can be used by the [suanPan](https://github.com/TLCFEM/suanPan) FEM platform (#295), thanks to TLCFEM.
- Allow spline options to be specified when importing `.dxf` files (292), thanks to ccaprani.
- Improved plotting options, including colorbar string formatting, mesh opacity options, custom colorbar limits, custom colorbar label, option to only plot selected materials (291).
- Added option to specify minimum mesh angle (290).
- Added support for Python 3.11 (289).

:bug: Fixes

- Fix symmetric difference operation not auto-detecting holes in the geometry (297), thanks to connorferster.
- Provide clarity on how to create arbitrary sections without a facet list (294).
- CGS solver fix (268), thanks to simo-11.

:rotating_light: Testing

- Use `nox` & `nox-poetry` for testing.
- Move `test_plastic_centroid()` to `test_plastic.py`.
- Various tests added.

:construction_worker: Continuous Integration

- Add `poetry` integration and detailed contributor guidelines.
- Added labeller and release drafter automation.
- Added pre-commit checks.
- Updated all workflows.

:books: Documentation

- Changed documentation theme to [furo](https://github.com/pradyunsg/furo).
- General overhaul of the documentation.
- Auto-generate API documentation using `sphinx.ext.autodoc`.
- Auto-generate images in documentation using the `matplotlib` plot directive.
- Change examples from sphinx gallery to jupyter notebook style with `nbsphinx`.
- Add `intersphinx` mappings.

:lipstick: Style

- Fully implement typing.
- Added `flake8` linter to pre-commit.
- Added `darglint` docstring linter to pre-commit.
- Added `isort` to pre-commit.
- Added `pyupgrade` to pre-commit.
- General refactor to improve readability and maintainability, e.g. reduce amount of code in ``section.py``: ``PlasticSection`` -> ``plastic_section.py``, ``StressPost`` and ``StressResult`` -> ``stress_post.py``, ``SectionProperties`` -> ``post.py``.
- Generally changed type of a point from ``list[float]`` to a ``tuple(float, float)``.

Other

- Restructured package by adding ``src`` folder.

2.1.5

- Fix shapely 2.0 imports and STRtree implementation, with thanks to [\normanrichardson](https://github.com/normanrichardson)
- Add support for python 3.10, drop support for python 3.7

**Full changelog:** [2.1.4\...2.1.5](https://github.com/robbievanleeuwen/section-properties/compare/2.1.4...2.1.5)

2.1.4

- Add side bar option to `concrete_rectangular_section()`, thanks to [\Agent6-6-6](https://github.com/Agent6-6-6)
- Fix difference operation raising an error, thanks to [\connorferster](https://github.com/connorferster)
- Added `concrete_column_section()` and `add_bar()` methods, thanks to [\connorferster](https://github.com/connorferster)

**Full changelog:** [2.1.3\...2.1.4](https://github.com/robbievanleeuwen/section-properties/compare/2.1.3...2.1.4)

2.1.3

- Retrieve cross-section stresses at any point using ``get_stress_at_point()`` or ``get_stress_at_points()``, many thanks to [normanrichardson](https://github.com/normanrichardson)
- Fix plot legend formatting, thanks to [Agent6-6-6](https://github.com/Agent6-6-6)
- Added ability for ``Geometry.align_center()`` and ``CompoundGeometry.align_center()`` to accept an ``x``, ``y`` coordinate as a valid input, thanks to [connorferster](https://github.com/connorferster)
- Only require a warping analysis to be performed for a stress analysis if the shear force or twisting moment is non-zero.

**Full changelog:** [2.1.2...2.1.3](https://github.com/robbievanleeuwen/section-properties/compare/2.1.2...2.1.3)

Page 2 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.