Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give better context when invalid object ID or name found #423

Closed
hongyuanjia opened this issue Mar 5, 2021 · 0 comments · Fixed by #424
Closed

Give better context when invalid object ID or name found #423

hongyuanjia opened this issue Mar 5, 2021 · 0 comments · Fixed by #424
Assignees
Milestone

Comments

@hongyuanjia
Copy link
Owner

library(eplusr)

idf <- read_idf(system.file("extdata/1ZoneUncontrolled.idf", package = "eplusr"))
#> IDD v8.8.0 has not been parsed before.
#> Try to locate 'Energy+.idd' in EnergyPlus v8.8.0 installation folder 'C:/EnergyPlusV8-8-0'.
#> IDD file found: 'C:\EnergyPlusV8-8-0\Energy+.idd'.
#> Start parsing...
#> Parsing completed.

get_idf_object(
    get_priv_env(idf)$idd_env(),
    get_priv_env(idf)$idf_env(),
    "AirLoopHVAC", 1
)
#> Error: Invalid object ID found: '1'

Created on 2021-03-05 by the reprex package (v1.0.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant