Skip to content

Commit

Permalink
update settings.pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
silverjam committed Sep 26, 2023
1 parent fde2d59 commit 7a83333
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
CR := conda run -n piksi_tools --live-stream
VERSION ?= v3.0.19

settings-pdf:
cd settings; $(CR) python ./generate_settings.py
cd settings; $(CR) python ./generate_settings.py "$(VERSION)"
cp settings/settings_out.pdf settings.pdf

install:
$(CR) pip install -e .[test,settings]
Expand Down
Binary file modified settings.pdf
Binary file not shown.
6 changes: 4 additions & 2 deletions settings/generate_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import absolute_import, print_function

import os
import sys
import re
import subprocess

Expand Down Expand Up @@ -96,12 +96,14 @@ def mod(group, groups={}):

latex_template = jenv.get_template('settings_template.tex')

VERSION = sys.argv[1]

with open("settings_out.tex", 'w') as f:
f.write(
latex_template.render(
groups=sorted(groups),
setting=sorted(settings.list_of_dicts, key=lambda x: repr(x)),
version='v3.0.17',
version=VERSION,
enumerate=enumerate,
mod=mod))

Expand Down

0 comments on commit 7a83333

Please sign in to comment.