55import matplotlib .pyplot as plt
66import pytest
77
8- < << << << HEAD
98# --- Helper goes at module level ---
109def assign_soil (anchor , soil_label , project ):
1110 soil_def = project .soilProps [soil_label ]
@@ -20,13 +19,8 @@ def assign_soil(anchor, soil_label, project):
2019 anchor .setSoilProfile (profile_map )
2120 anchor .profile_name = 'CPT_Assigned'
2221
23-
24- def test_anchor_loads ():
25- # load in famodel project
26- == == == =
2722@pytest .fixture
2823def project ():
29- > >> >> >> dev
3024 dir = os .path .dirname (os .path .realpath (__file__ ))
3125 return (Project (file = os .path .join (dir ,'testOntology.yaml' ), raft = False ))
3226
@@ -45,7 +39,6 @@ def test_anchor_loads(project):
4539 Vm = anch .loads .get ('Vm' )
4640 zlug = anch .dd ['design' ]['zlug' ]
4741
48- < << << << HEAD
4942 # Compute lug loads
5043 _ , Ha , Va = anch .getLugForces (Hm , Vm , zlug , plot = False )
5144 anch .loads ['Ha' ] = Ha
@@ -56,10 +49,7 @@ def test_anchor_loads(project):
5649 assert 'Hm' in anch .loads
5750 assert anch .loads ['Ha' ] != anch .loads ['Hm' ]
5851
59- def test_anchor_capacities ():
60- == == == =
6152def test_anchor_capacities (project ):
62- > >> >> >> dev
6353 # load in famodel project (suction pile anchor)
6454 project .getMoorPyArray (cables = 1 )
6555 anch = project .anchorList ['FOWT1a' ]
0 commit comments