Skip to content

Commit

Permalink
fixup! Format Python code with psf/black push
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions authored and github-actions committed Mar 21, 2023
1 parent b5f5a3e commit 3dfa8a7
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions hypermapper/local_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,15 +534,13 @@ def local_search(

# starting the processes and ensuring there's nothing more to process - joining the input queue when it's empty
with threadpool_limits(limits=1):

for process in processes:
process.start()
input_queue.put(None)
input_queue.join()

# the index on which to split the output
for i in range(number_of_cpus * partitions_per_cpu):

# would like this queue call to be non-blocking, but that does not work since the processes would need to be closed (?) for that to reliably work
result = output_queue.get()
scalarized_values, feasibility_indicators, split_index, conf_index = (
Expand Down
1 change: 0 additions & 1 deletion hypermapper/pibo.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ def prior_weighted_acquisition_function(
scalarization_method,
prior_floor=10**-6,
):

objective = param_space.get_optimization_parameters()[0]
# need to subtract by optimum to ensure scale-invariance when multiplying with prior
acquisition_function_values, feasibility_indicators = acquisition_function_wrapper(
Expand Down
1 change: 0 additions & 1 deletion hypermapper/plot_optimization_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ def plot_regret(
show_doe=True,
expert_configuration=None,
):

# Read json configuration file
if not configuration_file.endswith(".json"):
_, file_extension = splitext(configuration_file)
Expand Down
1 change: 0 additions & 1 deletion hypermapper/profiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def __init__(self, config):
self.start_time = None

def run(self):

self.start_time = datetime.datetime.now()

def stop(self):
Expand Down
1 change: 0 additions & 1 deletion hypermapper/space.py
Original file line number Diff line number Diff line change
Expand Up @@ -2733,7 +2733,6 @@ def filter_already_run_and_fill_with_random_configurations(
dictionary_to_be_filtered[self.get_input_parameters()[0]]
)
for conf_counter in range(len_dictionary_to_be_filtered):

configuration = {}
for header in self.get_input_parameters():
configuration[header] = dictionary_to_be_filtered[header][conf_counter]
Expand Down
1 change: 0 additions & 1 deletion scripts/plot_hvi.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@


if __name__ == "__main__":

try:
from pygmo import hypervolume
except ImportError as e:
Expand Down
1 change: 0 additions & 1 deletion scripts/plot_pareto.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
)

if __name__ == "__main__":

# This handles the logger. The standard setting is that HyperMapper always logs both on screen and on the log file.
# In cases like the interactive mode we only want to log on the file.
sys.stdout = Logger()
Expand Down
1 change: 0 additions & 1 deletion scripts/profiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def __init__(self, config):
self.start_time = None

def run(self):

self.start_time = datetime.datetime.now()

def stop(self):
Expand Down

0 comments on commit 3dfa8a7

Please sign in to comment.