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

index 50 is out of bounds #3

Open
aspitaleri opened this issue Jun 20, 2022 · 3 comments
Open

index 50 is out of bounds #3

aspitaleri opened this issue Jun 20, 2022 · 3 comments

Comments

@aspitaleri
Copy link

aspitaleri commented Jun 20, 2022

Hi
I am trying to use convert_dataset.py on my simulation. I converted the xtc to pdb containing only CA, having 100,001 MODEL. The number of residues are 489 and I run as follow:

python convert_dataset.py --MDfolder data/pdb/ --num-residues 489
I tried also
python convert_dataset.py --MDfolder data/pdb/ --pdb-start 1 --num-residues 489 --train-interval 2000 --validate-interval 2000

but I get:

Generate Train
Start: 1th PDB
Traceback (most recent call last):
File "convert_dataset.py", line 344, in
features, edges = convert_dataset_md_single(MDfolder, startIndex=1, experiment_size=1, timestep_size=50,
File "convert_dataset.py", line 304, in convert_dataset_md_single
features.append(read_feature_MD_file_slidingwindow(MDfolder+"ca_"+str(
File "convert_dataset.py", line 129, in read_feature_MD_file_slidingwindow
feature[numStep, 0, int(words[4])-aa_start] = float(words[5])
IndexError: index 50 is out of bounds for axis 0 with size 50

From the code I could not see where the error is from.
The demo ca_1.pdb worked fine. I am using 1 GPU A100 and 60G of memory
Any help to understand the options requirement?

@Peter-obi
Copy link

Did you find any solution to this?

@aspitaleri
Copy link
Author

Yes -
I add --test-interval 2001 too. Basically 100,001/50 ~ 2001

@Peter-obi
Copy link

Thanks!

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