coarse-graining / cgnet

learning coarse-grained force fields
BSD 3-Clause "New" or "Revised" License
57 stars 26 forks source link

decide on how to handle nans #170

Open brookehus opened 4 years ago

brookehus commented 4 years ago

Right now, we have a nan checker implemented in the geometry class, which raises a ValueError if a nan is found and is called in the following geometry methods:

These methods are invoked during network operations which occur both in training and in simulating. In simulating, we may not want a straight out ValueError - we likely want the option to get some information so we can debug what's going on.