Skip to content

Commit

Permalink
[Jenkins] auto-formatting by clang-format version 6.0.0-1ubuntu2~16.0…
Browse files Browse the repository at this point in the history
…4.1 (tags/RELEASE_600/final)
  • Loading branch information
stan-buildbot committed Apr 3, 2021
1 parent e48c86b commit 40ee1c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/stan/mcmc/windowed_adaptation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ class windowed_adaptation : public base_adaptation {
/**
* Check if there is any more warmup left to do
*/
bool finished() {
return adapt_window_counter_ + 1 >= num_warmup_;
}
bool finished() { return adapt_window_counter_ + 1 >= num_warmup_; }

/**
* Increment the window counter and return the new value
Expand Down
7 changes: 4 additions & 3 deletions src/test/unit/services/sample/hmc_nuts_dense_e_adapt_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,10 @@ TEST_F(ServicesSampleHmcNutsDenseEAdapt, no_timestep_reset) {

std::vector<std::string> string_values = parameter.string_values();
bool found_step_size = false;
for(size_t i = 0; i < string_values.size(); i++) {
// Make sure the sampler wrote a Step size and that it is not reset to exactly 1
if(string_values[i].compare("Step size")) {
for (size_t i = 0; i < string_values.size(); i++) {
// Make sure the sampler wrote a Step size and that it is not reset to
// exactly 1
if (string_values[i].compare("Step size")) {
found_step_size = true;
EXPECT_NE(string_values[i].compare("Step size = 1"), 0);
}
Expand Down

0 comments on commit 40ee1c2

Please sign in to comment.