Skip to content

Commit

Permalink
fix bug when using SVCs without Omega/Epsilon
Browse files Browse the repository at this point in the history
h/t Sean Anderson for identifying the bug, and see NEWS for details
  • Loading branch information
James-Thorson committed Jun 21, 2024
1 parent 23b0119 commit 72b04bc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: VAST
Type: Package
Title: Vector-Autoregressive Spatio-Temporal (VAST) Model
Version: 3.11.0
Date: 2024-01-10
Version: 3.11.1
Date: 2024-06-20
Authors@R:
c(person(given = "James",
family = "Thorson",
Expand Down
2 changes: 1 addition & 1 deletion R/make_map.R
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ function( DataList,
if("L_epsilon2_z" %in% names(TmbParams)) Map[["L_epsilon2_z"]] = ( rep(NA,length(TmbParams[["L_epsilon2_z"]])) )
}
if( all(DataList[["FieldConfig"]][1:2,2] == -1 )){
if( !( "Xconfig_zcp" %in% names(DataList) && any(DataList[["Xconfig_zcp"]][2,,] %in% c(2,3)) ) ){
if( !( any(DataList[["X2config_cp"]]%in%c(2,3,4)) | any(DataList[["Q2config_k"]]%in%c(2,3)) ) ){
Map[["logkappa2"]] = (NA)
if("rho_c2" %in% names(TmbParams)) Map[["rho_c2"]] = (NA)
}
Expand Down
Binary file modified manual/NEWS.docx
Binary file not shown.
Binary file modified manual/NEWS.pdf
Binary file not shown.

0 comments on commit 72b04bc

Please sign in to comment.