Skip to content

Commit

Permalink
fix one more
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Aug 28, 2024
1 parent 90c891f commit 6692677
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rednose/helpers/ekf_sym.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ def gen_code(folder, name, f_sym, dt_sym, x_sym, obs_eqs, dim_x, dim_err, eskf_p

# merge code blocks
header += "}"
code = "\n".join([pre_code, code, open(os.path.join(TEMPLATE_DIR, "ekf_c.c"), encoding='utf-8').read(), post_code])
with open(os.path.join(TEMPLATE_DIR, "ekf_c.c"), encoding='utf-8') as f:
code = "\n".join([pre_code, code, f.read(), post_code])

# write to file
if not os.path.exists(folder):
Expand Down

0 comments on commit 6692677

Please sign in to comment.