Bug: nma with fc.weights != NULL

Issue #27 resolved
Xinqiu Yao created an issue

I got following errors when calling nma function with fc.weights not NULL

library(bio3d)
pdb <- read.pdb("gdp_ca.pdb")
weights <- matrix(0.5, sum(pdb$calpha), sum(pdb$calpha))
modes <- nma(pdb, fc.weights=weights)

 Building Hessian...Error in build.hessian(xyz = c(29.725, 64.034, 42.983, 30.155, 67.736,  : 
  object 'natoms' not found

Comments (3)

  1. Xinqiu Yao reporter

    It works now, thanks! I never tried "testthat", but it is a good idea to have a bunch of test routines for new functions. Thanks for the link!

  2. Log in to comment