pfmc-assessments / VASTWestCoast

VAST for the NWFSC West Coast data
Other
5 stars 1 forks source link

call to FishStatsUtils::plot_results in VAST_do function not working #40

Open chantelwetzel-noaa opened 2 years ago

chantelwetzel-noaa commented 2 years ago

After the model fitting within VAST_do, I have been running into an error with the diagnostic function FishStatsUtils::plot_results. The error says:

Plotting quantile residuals

Error in ans[npos] <- rep(no, length.out = len)[npos] :

replacement has length zero

In addition: Warning message:

In rep(no, length.out = len) : 'x' is NULL so the result will be NULL

I suspect the issue is from a change in the required inputs to the plot_results funciton in FishStatsUtils that we need to modify to match. However, I have not put any additional effort in figuring out the exact cause.