Skip to content

Commit

Permalink
Removed generating_ensemble as attribute of familiarData.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzwanenburg committed Jan 3, 2025
1 parent f2b407d commit 1ca2331
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 23 deletions.
19 changes: 4 additions & 15 deletions R/FamiliarData.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,11 @@ setMethod(
object <- update_object(object = object)

# Create an initial descriptor.
data_str <- paste0(
cat(paste0(
"A dataset (", object@name, "; ",
.familiar_version_string(object), ")"
)

# Add the generating ensemble, if available.
if (length(object@generating_ensemble) > 0L) {
data_str <- paste0(
data_str, " created using ",
object@generating_ensemble, ".\n"
)

} else {
data_str <- paste0(data_str, ".\n")
}
cat(data_str)
.familiar_version_string(object),
").\n"
))

# Details concerning the generating ensemble.
cat(paste0(
Expand Down
5 changes: 0 additions & 5 deletions R/FamiliarS4Classes.R
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,6 @@ setClassUnion(
#' dataset.
#' @slot is_validation Signifies whether the underlying data forms a validation
#' dataset. Used internally.
#' @slot generating_ensemble Name of the ensemble that was used to generate the
#' familiarData object.
#' @slot project_id Identifier of the project that generated the familiarData
#' object.
#' @slot familiar_version Version of the familiar package.
Expand Down Expand Up @@ -410,8 +408,6 @@ setClass("familiarData",
# Flag to signal whether the data concerns validation data (TRUE) or
# development data (FALSE)
is_validation = "logical",
# Name of the model ensemble used to generate this data
generating_ensemble = "character",
# Project identifier
project_id = "ANY",
# Package version for backward compatibility
Expand Down Expand Up @@ -446,7 +442,6 @@ setClass("familiarData",
sample_similarity = NULL,
ice_data = NULL,
is_validation = FALSE,
generating_ensemble = character(0L),
project_id = NULL,
familiar_version = NULL
)
Expand Down
3 changes: 0 additions & 3 deletions man/familiarData-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1ca2331

Please sign in to comment.