Skip to content

Commit

Permalink
fix python formatting (#4886)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwdchang authored Sep 20, 2024
1 parent 742de3a commit d1d9017
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/mira/tasks/generate_model_latex.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def main():
for var, terms in odeterms.items()
]

# Observables
if len(model.observables) != 0:
# Observables
if len(model.observables) != 0:
obs_eqs = [
f"{{{obs.name}}}(t) = " + sympy.latex(obs.expression.args[0])
for obs in model.observables.values()
Expand All @@ -54,7 +54,7 @@ def main():
#add observables.
odesys += obs_eqs

#Reformat:
# Reformat:
odesys = "\\begin{align} \n " + " \\\\ \n ".join([eq for eq in odesys]) + "\n\\end{align}"

taskrunner.write_output_dict_with_timeout({"response": odesys})
Expand Down

0 comments on commit d1d9017

Please sign in to comment.