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

I HAVE A PROBLEM #2

Open
SecondhandAlgorithmEngineer opened this issue Dec 28, 2020 · 1 comment
Open

I HAVE A PROBLEM #2

SecondhandAlgorithmEngineer opened this issue Dec 28, 2020 · 1 comment

Comments

@SecondhandAlgorithmEngineer

when i set as follow:
Please enter OVH target id: 5
Please enter OVH organ id: 6
select PTV Heart and Organs Lt Lung
Traceback (most recent call last):
File "d:/dicom_read/OVH-master/ovhcalc.py", line 176, in
main()
File "d:/dicom_read/OVH-master/ovhcalc.py", line 174, in main
ovhc=calculate_ovh(rtssfile, int(var1), int(var2), True)
File "d:/dicom_read/OVH-master/ovhcalc.py", line 68, in calculate_ovh
for k in range(0,len(ss['planes'][keyss[find_nearest_index([float(jss) for jss in keyss],z)]][0]['data'])):
TypeError: 'dict_keys' object is not subscriptable

@glucee
Copy link
Owner

glucee commented Dec 28, 2020

This script is tested in Python 2. Please check.

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