API moordyn bug

Open
#61 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
python
Domain
backend

Research direction

Start by reproducing the two reports from Moorpy/examples/dynamic.py and the attached demo1.txt and lines.txt under Python 3.13.11, checking the missing plot window/log output and the dynamicSolve unpacking error. Done means both reported runs behave as expected without the ValueError.

Written by the indexing model from the issue text.

Description

Hello moorPy team:

i have 2 exercises with issues:

Description

1 ) Don't show image when i run this API code from CMD
attach files

demo1.txt
lines.txt

  1. error when run "Moorpy/examples/dynamic.py"
Current behaviour

!) …there is no image displayed , also Not log message

  1. T_nodes_psd_fd,T_nodes_std_fd,s,r_static,r_dynamic,r_total,X = ms.lineList[1].dynamicSolve(omegas,S_zeta,RAO_A=0,RAO_B=RAO_fl,depth=-ms.depth,kbot=kbot,cbot=cbot, seabed_tol=1e-4, tol=0.01, iters=100, w=0.8)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ValueError: too many values to unpack (expected 7)
Expected behaviour
  1. Should be shown a window with the plot image…

  2. the function seems incompatible with my python version

Code versions

SO: Windows 10
Python --v 3.13.11
Mooordyn 2.4 (precompiled pypi version)
MoorPy 1.2.1

Dominant language
Python
Stars
53
Forks
38
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NatLabRockies/MoorPy

All issues in NatLabRockies/MoorPy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.