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

Graph building hangs if n_frames > len(trajectory) #22

Open
samsledje opened this issue Dec 16, 2024 · 1 comment
Open

Graph building hangs if n_frames > len(trajectory) #22

samsledje opened this issue Dec 16, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@samsledje
Copy link

I'm following this tutorial: https://netsci.readthedocs.io/en/latest/tutorial2_protein_structure_gc.html

With last_frame = 99, this runs seamlessly
With last_frame = 100, the process hangs indefinitely.

I'm assuming this is because the sample trajectory only has 100 frames (0-99), but there should probably be some sort of warning/error thrown in this case, rather than the process hanging (and unable to be exited with ctrl+C; I need to kill -9 pid)

@amstokely amstokely self-assigned this Dec 16, 2024
@amstokely amstokely added the bug Something isn't working label Dec 16, 2024
@amstokely
Copy link
Collaborator

amstokely commented Dec 16, 2024

@

I'm following this tutorial: https://netsci.readthedocs.io/en/latest/tutorial2_protein_structure_gc.html

With last_frame = 99, this runs seamlessly With last_frame = 100, the process hangs indefinitely.

I'm assuming this is because the sample trajectory only has 100 frames (0-99), but there should probably be some sort of warning/error thrown in this case, rather than the process hanging (and unable to be exited with ctrl+C; I need to kill -9 pid)

Hi Sam,

I'll add an OutOfRangeException to the generalized/mutual information functions in netcalc to handle situations like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants