Skip to content

Commit 8a602b9

Browse files
Fix get_stress() example and fix pypi readme image
1 parent f3b2047 commit 8a602b9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README_pypi.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. image:: logo.png
1+
.. image:: https://raw.githubusercontent.com/robbievanleeuwen/section-properties/master/logo.png
22
:width: 100 %
33
:alt: sectionproperties
44
:align: left

sectionproperties/analysis/cross_section.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2566,8 +2566,8 @@ def get_stress(self):
25662566
stress_post = section.calculate_stress(N=10e3)
25672567
25682568
stresses = stress_post.get_stress()
2569-
print('Material {0}.format(stresses[0]['Material']))
2570-
print('Axial Stresses {0}'.format(stress[0]['sig_zz_n']))
2569+
print('Material: {0}'.format(stresses[0]['Material']))
2570+
print('Axial Stresses: {0}'.format(stresses[0]['sig_zz_n']))
25712571
25722572
$ Material: default
25732573
$ Axial Stresses: [3.64025694 3.64025694 3.64025694 ... 3.64025694 3.64025694 3.64025694]

0 commit comments

Comments
 (0)