Skip to content

Commit

Permalink
Update explore_network.R
Browse files Browse the repository at this point in the history
  • Loading branch information
r-trimbour authored Apr 22, 2024
1 parent 42d762b commit 5c32015
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/explore_network.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#' Format multiplex names for python hummuspy package config functions
#'
#' @param hummus_object A hummus object
#' @param hummus_object A HuMMuS_Object
#' @param multiplex_names A vector of multiplex names considered. It must be
#' a subset of the names of the multiplexes in the hummus object.
#'
Expand All @@ -25,7 +25,7 @@ format_multiplex_names <- function(
# bipartites_list <- hummus_object@bipartites

#} else
if (inherits(hummus_object, "hummus_object")) {
if (inherits(hummus_object, "Hummus_Object")) {
multiplex_list <- hummus_object@multilayer@multiplex
} else {
stop("Object is not a multilayer nor an hummus object.")
Expand Down Expand Up @@ -93,7 +93,7 @@ format_bipartites_names <- function(
#bipartites_list <- hummus_object@bipartites

#} else
if (inherits(hummus_object, "hummus_object")) {
if (inherits(hummus_object, "Hummus_Object")) {
bipartites_list <- hummus_object@multilayer@bipartites
} else {
stop("Object is not a multilayer nor an hummus object.")
Expand Down

0 comments on commit 5c32015

Please sign in to comment.