macrocosm-os / folding

Decentralized Protein Folding Bittensor Subnet
https://www.macrocosmos.ai/sn25
MIT License
16 stars 17 forks source link

OpenMMException to the validator forward. #238

Closed schampoux closed 1 month ago

schampoux commented 1 month ago

Currently we raise a value error if the init_energy is positive. We also need to account for the scenario where protein.setup_simulation() returns a NaN init energy and an OpenMMExceptions is raised. This PR ensures that the OpenMMException is caught, so proteins with Nan init energies dont make their way to the miners.