A simple script like this (save as convert.py) can be used to convert all the equation_coefficients files that were written in the inconsistent state:
#!/usr/bin/env python3
import sys
from reference_tools import equation_coefficients
for f in sys.argv[1:]:
e = equation_coefficients(file=f, override_nconst=True)
e.write(f)
Run it with find -name equation_coefficients -exec python3 path/to/convert.py {} +. Back up your files first.
This fixes #560 and includes some Python cleanup.
A simple script like this (save as
convert.py
) can be used to convert all theequation_coefficients
files that were written in the inconsistent state:Run it with
find -name equation_coefficients -exec python3 path/to/convert.py {} +
. Back up your files first.