RosettaCommons / RosettaCommons/RFdiffusion

RuntimeWarning: divide by zero

Open
#336 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
3.1k
Forks
644
PR merge metrics
No merged PRs in 30d

Description

How do you think I could fix this error? (non-developer user)

.../RFdiffusion/rfdiffusion/diffusion.py:507: RuntimeWarning: divide by zero encountered in divide
Score_approx = R_0t_rotvec * (self.score_norm(t, Omega) / Omega)[:, None]
...RFdiffusion/rfdiffusion/diffusion.py:507: RuntimeWarning: invalid value encountered in multiply
Score_approx = R_0t_rotvec * (self.score_norm(t, Omega) / Omega)[:, None]

The job is continued but X/Y/Z coordinate values in the the output PDB file are not finite numbers

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading rfdiffusion/diffusion.py around line 507, where the divide-by-zero and invalid multiply warnings occur. Reproduce the reported run if possible and trace the values of Omega and the resulting Score_approx. Done means the job no longer produces non-finite X/Y/Z coordinates in the output PDB file.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
bioinformatics, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.