Skip to content

Commit 9ad10b4

Browse files
committed
made print statemts for pre-proc more specific
1 parent 6d5b84c commit 9ad10b4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pyspi/data.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,19 +182,19 @@ def set_data(
182182
data = data[:, :n_observations]
183183

184184
if self.detrend:
185-
print(Fore.GREEN + "[1/2] De-trending the dataset...")
185+
print(Fore.GREEN + "[1/2] Detrending time series in the dataset...")
186186
try:
187187
data = detrend(data, axis=1)
188188
except ValueError as err:
189189
print(f"Could not detrend data: {err}")
190190
else:
191-
print(Fore.RED + "[1/2] Skipping detrending of the dataset...")
191+
print(Fore.RED + "[1/2] Skipping detrending of time series in the dataset...")
192192

193193
if self.normalise:
194-
print(Fore.GREEN + "[2/2] Normalising (z-scoring) the dataset...\n")
194+
print(Fore.GREEN + "[2/2] Normalising (z-scoring) each time series in the dataset...\n")
195195
data = zscore(data, axis=1, nan_policy="omit", ddof=1)
196196
else:
197-
print(Fore.RED + "[2/2] Skipping normalisation of the dataset...\n")
197+
print(Fore.RED + "[2/2] Skipping normalisation of time series in the dataset...\n")
198198

199199
nans = np.isnan(data)
200200
if nans.any():

0 commit comments

Comments
 (0)