Skip to content

Commit 578e38f

Browse files
authored
Merge branch 'develop' into format-R
2 parents c7fc6a8 + 5cdc639 commit 578e38f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/bsyncr_example.Rmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ bsync_doc <- xml2::read_xml(bsync_filepath) %>%
5151
5252
baseline_xpath <- sprintf("//auc:Scenario[@ID = '%s']", baseline_scenario_id)
5353
sc_baseline <- xml2::xml_find_first(bsync_doc, baseline_xpath)
54+
5455
not_used <- sc_baseline %>% bsyncr::bs_stub_derived_model(
5556
dm_id = "DerivedModel-bsyncr",
5657
dm_period = "Baseline"
@@ -64,7 +65,7 @@ b_df <- bsyncr::bs_parse_nmecr_df(bsync_doc, insert_weather_data = TRUE)
6465
model <- nmecr::model_with_SLR(b_df, nmecr::assign_model_inputs(regression_type = "SLR"))
6566
6667
model_df <- model$training_data %>%
67-
tidyr::gather(key = "variable", value = "value", c("eload", "model_fit"))
68+
tidyr::gather(key = "variable", value = "value", c("eload", "model_fit"))
6869
6970
print(model_df)
7071
@@ -83,4 +84,5 @@ ggplot2::ggplot(model_df, aes(x = temp, y = value)) +
8384
theme_minimal() +
8485
theme(legend.position = "bottom") +
8586
theme(legend.title = element_blank())
87+
8688
```

0 commit comments

Comments
 (0)