Commit de60a17
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- examples
- famodel
- mooring
- tests
6 files changed
+182
-311
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | 332 | | |
337 | 333 | | |
338 | 334 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
495 | 499 | | |
496 | 500 | | |
497 | 501 | | |
| |||
0 commit comments