This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 启动后需要保留窗口, 关闭窗口则结束进程 | |
aria2c --conf-path=aria2.conf -D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(eplusr) | |
library(purrr) | |
library(data.table) | |
library(lubridate) | |
example_idf <- function (ver) { | |
file.path(eplus_config(ver)$dir, "ExampleFiles", "5Zone_Transformer.idf") | |
} | |
example_epw <- function(ver) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(eplusr) | |
library(purrr) | |
library(data.table) | |
library(lubridate) | |
create_idf <- function (ver = 8.9, realyear = FALSE, year = NULL, day_of_week = NULL) { | |
path <- file.path(eplus_config(ver)$dir, "ExampleFiles", "5Zone_Transformer.idf") | |
idf <- read_idf(path) | |
idf$Output_Variable <- NULL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' Initialize input data for Stan | |
#' | |
#' @param field A data.frame that contains field-measured data | |
#' | |
#' @param computed A data.frame that contains computed (simulated) data | |
#' | |
#' @param designed A data.frame that contains designed data for prediction. | |
#' Default is set to the same input as `computed.` | |
#' | |
#' @param inputs,outputs,params One or more unquoted expressions separated by |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(eplusr) | |
# construct a fake schedule CSV file with 15 min interval and random values | |
interval <- 15 | |
fake_data <- data.frame( | |
time = seq( | |
as.POSIXct("2020-03-15 00:15:00"), | |
by = "15 mins", | |
length.out = 24 * (60 / interval) | |
), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
read_sch_data <- function(path) { | |
# read meta data | |
meta <- data.table::fread(path, nrows = 4) | |
# get the month number | |
month <- meta[V1 == "IMonth", as.integer(V2)] | |
# get the occu num | |
num <- meta[V1 == "OccuNum", as.integer(V2)] | |