Skip to content

Commit 95ee873

Browse files
committed
Remove automatic setting of EA in setLineType
1 parent 776b85d commit 95ee873

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

moorpy/system.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,6 @@ def setLineType(self, dnommm=None, material=None, source=None, name="0",
468468
# check if important keys exist, if not add them with None value
469469
lineType['w'] = lineType.get('w')
470470
lineType['m'] = lineType.get('m')
471-
lineType['EA'] = lineType.get('EA')
472-
lineType['d_nom'] = lineType.get('d_nom')
473471
lineType['d_vol'] = lineType.get('d_vol')
474472
lineType['material'] = lineType.get('material')
475473

@@ -490,7 +488,7 @@ def setLineType(self, dnommm=None, material=None, source=None, name="0",
490488
counter = 1 # initiate counter to adjust name
491489
type_string_start = deepcopy(name)
492490
while name in self.lineTypes: # keep incrementing counter and trying names until it doesn't match an existing one
493-
name = type_string_start+'_'+str(counter) # try adjusted name
491+
name = str(type_string_start)+'_'+str(counter) # try adjusted name
494492
counter += 1 # increment counter
495493
self.lineTypes[name] = lineType
496494
else:

0 commit comments

Comments
 (0)