Skip to content

Some issues with landmark_atrium.py #87

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

Open
keiyamamo opened this issue Jan 24, 2025 · 0 comments
Open

Some issues with landmark_atrium.py #87

keiyamamo opened this issue Jan 24, 2025 · 0 comments

Comments

@keiyamamo
Copy link

Hi @hkjeldsberg

I tried to use landmark_atrium.py, but faced some issues. I found some fixes, but not for all of them.

The first problem is parsing the input file:

return dict(input_path=args.input_path, resampling_step=args.resampling_step)

args do not have input_path, and this should be fixed as:

return dict(input_path=args.ifile, resampling_step=args.resampling_step) 

Secondly, I faced an issue with:

line = extract_single_line(laa_centerline, 0, start_id=id_start, end_id=id_stop)

Changing the end_id=id_stop to end_id=None seemed to avoid the error.

However, I still get an error with:

line = compute_splined_centerline(line, nknots=10, isline=True)

The error is as follows:

File “/morphMan/src/morphman/landmark_atrium.py", line 170, in separate_left_atrium_and_appendage
    line = compute_splined_centerline(line, nknots=10, isline=True)
  File “/morphMan/src/morphman/common/centerline_operations.py", line 932, in compute_splined_centerline
    misr = get_point_data_array(radiusArrayName, line)
  File “/morphMan/src/morphman/common/vtk_wrapper.py", line 328, in get_point_data_array
    data_array = line.GetPointData().GetArray(array_name).GetTuple1
AttributeError: 'NoneType' object has no attribute 'GetTuple1'

At this point, I stopped investigating further since it was not straightforward to identify the problem. Could you please look into this?

Best,
Kei

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

1 participant