From 3ddb64c1b7cf8c86eb52ef2d6498e96a30490141 Mon Sep 17 00:00:00 2001 From: "Adam M. Krajewski" <54290107+amkrajewski@users.noreply.github.com> Date: Mon, 12 Feb 2024 14:33:25 -0500 Subject: [PATCH] (QoL) `Calculator` printout improvements --- pysipfenn/core/pysipfenn.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pysipfenn/core/pysipfenn.py b/pysipfenn/core/pysipfenn.py index 84c0a2b..e7889ec 100644 --- a/pysipfenn/core/pysipfenn.py +++ b/pysipfenn/core/pysipfenn.py @@ -101,7 +101,8 @@ def __init__(self, def __str__(self): """Prints the status of the `Calculator` object.""" printOut = f'pySIPFENN Calculator Object. Version: {__version__}\n' - printOut += f'Models are located in:\n{resources.files("pysipfenn.modelsSIPFENN")}\n{"-" * 80}\n' + printOut += f'Models are located in:\n {resources.files("pysipfenn.modelsSIPFENN")}\n' + printOut += f'Auxiliary files (incl. structure prototypes):\n {resources.files("pysipfenn.misc")}\n{"-" * 80}\n' printOut += f'Loaded Networks: {list(self.loadedModels.keys())}\n' if len(self.inputFiles) > 0: printOut += f'Last files selected as input: {len(self.inputFiles)}\n' @@ -125,9 +126,9 @@ def updateModelAvailability(self) -> None: for net, netName in zip(self.network_list, self.network_list_names): if all_files.__contains__(net + '.onnx'): detectedNets.append(net) - print('\u2714 ' + netName) + print('✔ ' + netName) else: - print('\u292B ' + netName) + print('⨯ ' + netName) self.network_list_available = detectedNets def parsePrototypeLibrary(self,