Skip to content

Commit de60a17

Browse files
committed
Streamlining the input parsing and creation of Moorings:
- Project.loadDesign: Work in progress adapting the YAML loading to be more simple and bottom-up, parsing all contents in reverse hierarchical order. - - Removed some error checks that would become redundant. - - Implemented simpler reading of mooring config info into design dictionaries, stored in Project.mooring_configs. - Project.addMooring: modified to use more integrated approach that supports look for an entry in Project.mooring_configs. - - To do: see if naming convention can be fully implemented in here. - Helpers: - - getMoorings (duplicate name of Platform method) replaced with loadMooringConfig, edited version with some streamlining and no explicit Project dependency. - - Added ConnectorProps, similar to MooringProps for connectors. - Edited some test YAMLs to have clump_weight 20 or 80 as needed. NOTE: As these changes are implemented, YAMLs that have leftover unused entries with missing references will raise errors more reliably.
1 parent aaa6903 commit de60a17

File tree

6 files changed

+182
-311
lines changed

6 files changed

+182
-311
lines changed

examples/OntologySample200m.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,10 +329,6 @@ mooring_connector_types:
329329
m : 140 # [kg] component mass
330330
v : 0.13 # [m^3] component volumetric displacement
331331

332-
clump_weight_20:
333-
m : 20000 # [kg]
334-
v : 0.8 # [m^3]
335-
336332
clump_weight_80:
337333
m : 80000 # [kg]
338334
v : 0.0 # [m^3]

examples/OntologySample600m_shared.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,10 @@ mooring_connector_types:
492492
m : 140 # [kg] component mass
493493
v : 0.13 # [m^3] component volumetric displacement
494494

495+
clump_weight_20:
496+
m : 20000 # [kg]
497+
v : 0.8 # [m^3]
498+
495499
clump_weight_80:
496500
m : 80000 # [kg]
497501
v : 0.0 # [m^3]

0 commit comments

Comments
 (0)