Skip to content

Commit

Permalink
Removed some lingering debugging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
jrawbits committed Apr 11, 2023
1 parent e54af1b commit da36c82
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sources/framework/VEModel/R/environment.R
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ initLog <- visioneval::initLog
uniqueSources <- function(Param_ls,shorten=NULL) {
sources <- sapply(Param_ls,function(p) attr(p,"source"))
if ( is.null(sources) ) {
writeLog("'sources' attribute is null in uniqueSources",.traceback(1),Level="info")
writeLog(c("'sources' attribute is null in uniqueSources",.traceback(1)),Level="info")
sources <- "NULL"
} else {
sources <- unique(sources)
Expand Down
2 changes: 0 additions & 2 deletions sources/framework/visioneval/R/initialization.R
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,6 @@ getModelState <- function(envir=NULL,stopOnError=TRUE,...) {
if ( is.null(envir) ) envir <- modelEnvironment()
if ( ! "ModelState_ls" %in% ls(envir=envir) ) {
if ( stopOnError ){
traceback(1)
browser()
stop("getModelState: ModelState is not initialized.")
}
}
Expand Down
2 changes: 1 addition & 1 deletion sources/framework/visioneval/R/module.R
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ savePackageDataset <- function(dataset,overwrite=TRUE,keep=FALSE,compress="xz")
if ( overwrite ) {
cat("Saving '",dsname,"' to '",file,"' ... ",sep="")
save(list=dsname,file=file,compress=compress,envir=parent.frame())
if ( ! file.exists(file) ) { traceback(); stop("File NOT saved!\n") } else cat("Saved\n")
if ( ! file.exists(file) ) { stop("File NOT saved!\n") } else cat("Saved\n")
}
} else if (build.phase == "BUILD" ) {
# During the BUILD phase, we won't keep the dataset unless explicitly requested. Some modules
Expand Down

0 comments on commit da36c82

Please sign in to comment.