Skip to content

Commit 0bb73d0

Browse files
v1.0.2 - Fix returns for adding to geometry
1 parent 3424e49 commit 0bb73d0

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ Change Log:
44
v1.0.1:
55
-------
66

7+
- Fix returns for adding to geometry
8+
9+
v1.0.1:
10+
-------
11+
712
- Added calculate_frame_properties()
813
- Added methods for adding points, facets and control points to geometries
914
- New pypi README file

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
author = 'Robbie van Leeuwen'
2525

2626
# The short X.Y version
27-
version = '1.0.1'
27+
version = '1.0.2'
2828
# The full version, including alpha/beta/rc tags
29-
release = '1.0.1'
29+
release = '1.0.2'
3030

3131

3232
# -- General configuration ---------------------------------------------------

sectionproperties/pre/sections.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def add_point(self, point):
204204
"""
205205

206206
self.points.append(point)
207-
return len(self.points - 1)
207+
return len(self.points) - 1
208208

209209
def add_facet(self, facet):
210210
"""Adds a facet to the geometry and returns the added facet id.
@@ -216,7 +216,7 @@ def add_facet(self, facet):
216216
"""
217217

218218
self.facets.append(facet)
219-
return len(self.facets - 1)
219+
return len(self.facets) - 1
220220

221221
def add_hole(self, hole):
222222
"""Adds a hole location to the geometry and returns the added hole id.
@@ -228,7 +228,7 @@ def add_hole(self, hole):
228228
"""
229229

230230
self.holes.append(hole)
231-
return len(self.holes - 1)
231+
return len(self.holes) - 1
232232

233233
def add_control_point(self, control_point):
234234
"""Adds a control point to the geometry and returns the added control
@@ -241,7 +241,7 @@ def add_control_point(self, control_point):
241241
"""
242242

243243
self.control_points.append(control_point)
244-
return len(self.control_points - 1)
244+
return len(self.control_points) - 1
245245

246246
def clean_geometry(self, verbose=False):
247247
"""Peforms a full clean on the geometry.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def readme():
2323
install_requires.append('meshpy')
2424

2525
setup(name='sectionproperties',
26-
version='1.0.1',
26+
version='1.0.2',
2727
description=description_text(),
2828
long_description=readme(),
2929
long_description_content_type='text/markdown',

todo.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
# TODO LIST:
2+
- [ ] add lots of tests!

0 commit comments

Comments
 (0)