Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A value error when using morphman-area #82

Open
JIsaacW opened this issue Feb 11, 2023 · 1 comment
Open

A value error when using morphman-area #82

JIsaacW opened this issue Feb 11, 2023 · 1 comment

Comments

@JIsaacW
Copy link

JIsaacW commented Feb 11, 2023

Hi, I'm new in morphman,
When I use morphman-area command to adjust a coronary geometry model, there is an error like this:

Please select region of interest in the render window.
Quit renderer
-- The chosen region points: [-3.548530340194702, 1.9141699075698853, -15.790369987487793]
Traceback (most recent call last):
  File "/home/isaac/Program/anaconda3/envs/morphman/bin/morphman-area", line 10, in <module>
    sys.exit(main_area())
  File "/home/isaac/Program/anaconda3/envs/morphman/lib/python3.10/site-packages/morphman/manipulate_area.py", line 572, in main_area
    manipulate_area(**read_command_line_area())
  File "/home/isaac/Program/anaconda3/envs/morphman/lib/python3.10/site-packages/morphman/manipulate_area.py", line 76, in manipulate_area
    centerline_splined, centerline_remaining, centerline_diverging, region_points, diverging_ids = get_line_to_change(
  File "/home/isaac/Program/anaconda3/envs/morphman/lib/python3.10/site-packages/morphman/common/centerline_operations.py", line 479, in get_line_to_change
    line_to_change = compute_splined_centerline(line_to_change, nknots=nknots, isline=True)
  File "/home/isaac/Program/anaconda3/envs/morphman/lib/python3.10/site-packages/morphman/common/centerline_operations.py", line 761, in compute_splined_centerline
    fx = splrep(curv_coor, data[:, 0], k=4, t=t)
  File "/home/isaac/Program/anaconda3/envs/morphman/lib/python3.10/site-packages/scipy/interpolate/_fitpack_py.py", line 288, in splrep
    res = _impl.splrep(x, y, w, xb, xe, k, task, s, t, full_output, per, quiet)
  File "/home/isaac/Program/anaconda3/envs/morphman/lib/python3.10/site-packages/scipy/interpolate/_fitpack_impl.py", line 508, in splrep
    raise _iermess[ier][1](_iermess[ier][0])
ValueError: Error on input data

This is my input:

morphman-area -i model.vtp -o symmetry_stenosis.vtp -b 250 250 250 -m stenosis -r manual --size 2.0 -p 50

How can I solve this error, thanks!

@hkjeldsberg
Copy link
Collaborator

Hi @JIsaacW,

Thanks for reporting this issue. Seems to be an issue when splining the centerline, so perhaps it is related to the input centerline.

Could you possibly share the geometry you are using for manipulation?

Best regard,
Henrik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants