Skip to content

Commit

Permalink
fix null input (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
arunge authored Sep 5, 2024
1 parent afe8317 commit a783514
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: DSSM
Title: Pandora & IsoMemo spatiotemporal modeling
Version: 24.08.5
Version: 24.09.0
Authors@R: c(
person("Marcus", "Gross", email = "[email protected]", role = c("cre", "aut")),
person("Antonia", "Runge", email = "[email protected]", role = c("aut"))
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# DSSM 24.09.0

## Bug Fixes
- fix issue with failing modeling for "Smooth Type" = "planar" with 'number of spatial basis functions' input (#247)

# DSSM 24.08.5

## New Features
Expand Down
4 changes: 3 additions & 1 deletion R/01-estimateMap.R
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,9 @@ estimateMap3D <- function(data,
K <- ceiling(0.9 * nrow(unique(data[, c(Longitude, Latitude)])))
if (K < 4) {return("less than 4 rows")}
}
if (length(unique(data[, c("Date")])) <= KT) {

# KT = input[["SmoothingT"]] now can become NULL if splineType != 2
if (splineType == 2 && length(unique(data[, c("Date")])) <= KT) {
KT <- ceiling(0.9 * length(unique(data[, c("Date")])))
if (KT < 4) {return("less than 4 rows")}
}
Expand Down

0 comments on commit a783514

Please sign in to comment.