Skip to content

Commit

Permalink
Delete square when running cmake (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell authored May 15, 2023
1 parent 509dd1a commit b3b06aa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 65 deletions.
1 change: 0 additions & 1 deletion python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ SET(podio_PYTHON_DIR ${CMAKE_CURRENT_LIST_DIR} PARENT_SCOPE)
set(to_install
podio_class_generator.py
podio_schema_evolution.py
figure.txt
EventStore.py)

install(FILES ${to_install} DESTINATION ${podio_PYTHON_INSTALLDIR})
Expand Down
44 changes: 0 additions & 44 deletions python/figure.txt

This file was deleted.

24 changes: 4 additions & 20 deletions python/podio_class_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,12 @@
import os
import sys
import subprocess
import pickle
from copy import deepcopy
from enum import IntEnum

from collections.abc import Mapping
from collections import defaultdict

from itertools import zip_longest

import jinja2

from podio.podio_config_reader import PodioConfigReader
Expand All @@ -26,15 +23,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 @@ -171,19 +161,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 b3b06aa

Please sign in to comment.