File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
src/autotuning_methodology Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 88import time as python_time
99import warnings
1010from pathlib import Path
11- import pickle , gzip # compression libraries if necessary for collecting results
11+
12+ # compression libraries if necessary for collecting results
13+ import pickle
14+ import gzip
1215
1316import numpy as np
1417import progressbar
@@ -227,13 +230,15 @@ def collect_results(
227230 results_description: the ``ResultsDescription`` object to write the results to.
228231 searchspace_stats: the ``SearchspaceStatistics`` object, used for conversion of imported runs.
229232 profiling: whether profiling statistics must be collected.
233+ compress: whether the results should be compressed.
230234
231235 Returns:
232236 The ``ResultsDescription`` object with the results.
233237 """
234238 if profiling :
235- import psutil , os
236- process = psutil .Process (os .getpid ())
239+ import psutil
240+ from os import getpid
241+ process = psutil .Process (getpid ())
237242 warnings .warn (f"Memory usage at start of collect_results: { process .memory_info ().rss / 1e6 :.1f} MB" )
238243
239244 # calculate the minimum number of function evaluations that must be valid
You can’t perform that action at this time.
0 commit comments