Skip to content

Commit 694440c

Browse files
author
Rudy Alkarem
committed
default numSeg factor to 1 in FFarmCompatible MD output function in project.py
1 parent 859ef0c commit 694440c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

famodel/project.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4864,7 +4864,8 @@ def FFarmCompatibleMDOutput(self, filename, MDoptionsDict=None, **kwargs):
48644864
"removeBody": True,
48654865
"outputList": [],
48664866
"bathymetryFile": None,
4867-
"flag": "-"
4867+
"flag": "-",
4868+
"factor": 1
48684869
}
48694870

48704871
# Merge defaults with kwargs
@@ -4876,7 +4877,9 @@ def FFarmCompatibleMDOutput(self, filename, MDoptionsDict=None, **kwargs):
48764877
removeBody = opts["removeBody"]
48774878
outputList = opts["outputList"]
48784879
bathymetryFile = opts["bathymetryFile"]
4880+
48794881
flag = opts["flag"]
4882+
factor = opts["factor"]
48804883

48814884
if MDoptionsDict is None:
48824885
MDoptionsDict = {}
@@ -4897,7 +4900,7 @@ def FFarmCompatibleMDOutput(self, filename, MDoptionsDict=None, **kwargs):
48974900
# Setup nNodes of lines manually based on the segment length desired.
48984901
from moorpy.helpers import lengthAwareSegmentation
48994902

4900-
lengthAwareSegmentation(ms_temp.lineList)
4903+
lengthAwareSegmentation(ms_temp.lineList, factor=factor)
49014904

49024905
# Remove anchors from ms_temp
49034906
bodies_to_be_deleted = []

0 commit comments

Comments
 (0)