Skip to content

Commit db21631

Browse files
committed
Make dep check output nicer.
1 parent 8950c90 commit db21631

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pyspi/calculator.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def __init__(
9595
for dep in missing_deps:
9696
print(f"- {dep}")
9797

98-
print(f"\nAs a result, {len(self._excluded_spis)} SPI(s) have been excluded:")
98+
print(f"\nAs a result, a total of {len(self._excluded_spis)} SPI(s) have been excluded:")
9999

100100
dependency_groups = {}
101101
for spi in self._excluded_spis:
@@ -105,15 +105,17 @@ def __init__(
105105
dependency_groups[dep].append(spi[0])
106106

107107
for dep, spis in dependency_groups.items():
108-
print(f"\nDependency: {dep} (Affects {len(spis)} SPI(s))")
108+
print(f"\nDependency: {dep} affects {len(spis)} SPI(s)")
109109
print("Excluded SPIs:")
110110
for spi in spis:
111111
print(f" - {spi}")
112112

113+
print(f"="*100)
113114
print("\nOptions to Proceed:")
114115
print(f" 1) Install the following dependencies to access all SPIs: [{', '.join(missing_deps)}]")
115116
callable_name = "{Calculator/CalculatorFrame}"
116117
print(f" 2) Continue with a reduced set of {self.n_spis} SPIs by calling {callable_name}.compute(). \n")
118+
print(f"="*100)
117119

118120
if dataset is not None:
119121
self.load_dataset(dataset)

0 commit comments

Comments
 (0)