Skip to content

Commit

Permalink
Tweak BC code
Browse files Browse the repository at this point in the history
  • Loading branch information
Hongyuan Jia committed Dec 3, 2020
1 parent d079f97 commit 24561f2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions vignettes/paper.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -1718,6 +1718,7 @@ tmp$RunPeriod <- NULL
tmp$add(RunPeriod = list("test", 7, 1, NULL, 7, 3))
# add variables of interest to output
tmp$Output_Variable <- NULL
tmp$Output_Meter <- NULL
tmp$add(Output_Variable = list("VAV_1_Fan", "Fan Electric Power", "Hourly"))
# get rid of design day variable output data
tmp$SimulationControl$set(run_simulation_for_sizing_periods = "No")
Expand All @@ -1726,9 +1727,9 @@ tmp$save(tempfile(fileext = ".idf"))
# run simulation
job <- tmp$run(path_weather)
# extract fan electric power in 6-hourly frequency
fan_power <- job$report_data(all = TRUE) %>%
fan_power <- job$report_data(name = "Fan Electric Power", all = TRUE) %>%
epluspar:::report_dt_aggregate("6 hour") %>%
eplusr:::report_dt_to_wide()
epluspar:::report_dt_to_wide()
# insert Gaussian noise
fan_power <- fan_power %>%
select(-`Date/Time`) %>%
Expand All @@ -1740,6 +1741,8 @@ fan_power <- fan_power %>%
# load library
library(epluspar)
idf$save(file.path(tempdir(), "MediumOffice.idf"), overwrite = TRUE)
# create a `BayesCalibJob` object:
bc <- bayes_job(idf, path_weather)
Expand Down

0 comments on commit 24561f2

Please sign in to comment.