Skip to content

Commit

Permalink
Attempt to fix ci issues with out of range error
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-parker1 committed Apr 22, 2024
1 parent 236e15b commit 5c3a5b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mappings/magnetics/mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"flux_loop": {
"MAP_TYPE": "VALUE",
"VALUE": 46
"VALUE": "{{ length(flux_loop_names) }}"
},
"flux_loop[#]/name": {
"MAP_TYPE": "VALUE",
Expand Down
4 changes: 2 additions & 2 deletions tests/include/inja_helpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ float test_cython() {

std::string test_render(std::string key) {
inja::json data;
data["indices"] = {1, 2, 3};
data["indices"] = {0, 1, 2};
return inja::render(key, data);
};

std::string test_render_wglobals(std::string temp_globals, std::string key) {
inja::json data;
data = inja::json::parse(temp_globals);
data["indices"] = {1, 2, 3};
data["indices"] = {0, 1, 2};

return inja::render(key, data);
};
Expand Down

0 comments on commit 5c3a5b5

Please sign in to comment.