Skip to content

Commit 5f56b30

Browse files
committed
adding creep and corrosion rate in output when loading lineProps (defaults to 0.0).
1 parent d2ba9fd commit 5f56b30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

moorpy/helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,8 @@ def loadLineProps(source):
821821
output[mat]['MBL_d2' ] = getFromDict(props, 'MBL_d2' , default=0.0)
822822
output[mat]['MBL_d3' ] = getFromDict(props, 'MBL_d3' , default=0.0)
823823
output[mat]['dvol_dnom'] = getFromDict(props, 'dvol_dnom', default=1.0)
824-
824+
output[mat]['creep_rate'] = getFromDict(props, 'creep_rate', default=0.0)
825+
output[mat]['corrosion_rate'] = getFromDict(props, 'corrosion_rate', default=0.0)
825826
# special handling if material density is provided
826827
if 'density' in props:
827828
if 'dvol_dnom' in props:

0 commit comments

Comments
 (0)