Skip to content

Commit

Permalink
Delete square when running cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Apr 25, 2023
1 parent 705721d commit ca5e5a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 61 deletions.
44 changes: 0 additions & 44 deletions python/figure.txt

This file was deleted.

21 changes: 4 additions & 17 deletions python/podio_class_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,8 @@
REPORT_TEXT = """
PODIO Data Model
================
Used
{yamlfile}
to create
{nclasses} classes
in
{installdir}/
Read instructions in
the README.md to run
your first example!
Used {yamlfile} to create {nclasses} classes in {installdir}/
Read instructions in the README.md to run your first example!
"""


Expand Down Expand Up @@ -172,19 +165,13 @@ def print_report(self):
if not self.verbose:
return

with open(os.path.join(THIS_DIR, "figure.txt"), 'rb') as pkl:
figure = pickle.load(pkl)

nclasses = 5 * len(self.datamodel.datatypes) + len(self.datamodel.components)
text = REPORT_TEXT.format(yamlfile=self.yamlfile,
nclasses=nclasses,
installdir=self.install_dir)

print()
for figline, summaryline in zip_longest(figure, text.splitlines(), fillvalue=''):
print(figline + summaryline)
print(" 'Homage to the Square' - Josef Albers")
print()
for summaryline in text.splitlines():
print(summaryline)
print()

def _eval_template(self, template, data):
Expand Down

0 comments on commit ca5e5a0

Please sign in to comment.