We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e99b1e5 + 88c48f8 commit 10c1d07Copy full SHA for 10c1d07
src/random_effects.cpp
@@ -32,8 +32,10 @@ void LabelMapper::from_json(const nlohmann::json& rfx_label_mapper_json) {
32
int num_values = rfx_label_mapper_json.at("values").size();
33
CHECK_EQ(num_keys, num_values);
34
for (int i = 0; i < num_keys; i++) {
35
- keys_.push_back(rfx_label_mapper_json.at("keys").at(i));
36
- label_map_.insert({rfx_label_mapper_json.at("keys").at(i), rfx_label_mapper_json.at("values").at(i)});
+ int32_t key = rfx_label_mapper_json.at("keys").at(i);
+ int32_t value = rfx_label_mapper_json.at("values").at(i);
37
+ keys_.push_back(key);
38
+ label_map_.insert({key, value});
39
}
40
41
0 commit comments