hongyuanjia / eplusr

A Toolkit for Using EnergyPlus in R.
https://hongyuanjia.github.io/eplusr
Other
69 stars 13 forks source link

Bad error messages when both class and object are given in querying objects #594

Closed hongyuanjia closed 3 months ago

hongyuanjia commented 3 months ago
library(eplusr)
path <- path_eplus_example(23.1, "1ZoneUncontrolled.idf")
idf <- read_idf(path)
day <- get_idf_value(
    get_priv_env(idf)$idd_env(),
    get_priv_env(idf)$idf_env(),
    class = "Schedule:Day:List", object = c(30, 28)
)
#> Error: Invalid object ID found: '30' and '28' in Class 'Schedule:Day:List'
#> Error: Invalid object ID found: '30' and '28' in Class 'Schedule:Day:List'

Created on 2024-07-27 with reprex v2.1.1