Merge pull request 'feat: Prints model names while running' (#21) from printnames into master
All checks were successful
gitea-physics/deepdog/pipeline/head This commit looks good

Reviewed-on: #21
This commit is contained in:
2022-08-13 20:49:03 +00:00

View File

@@ -140,8 +140,10 @@ class RealSpectrumRun:
results = [] results = []
_logger.debug("Going to iterate over models now") _logger.debug("Going to iterate over models now")
for model_count, model in enumerate(self.models): for model_count, (model, model_name) in enumerate(
_logger.debug(f"Doing model #{model_count}") zip(self.models, self.model_names)
):
_logger.debug(f"Doing model #{model_count}: {model_name}")
core_count = multiprocessing.cpu_count() - 1 or 1 core_count = multiprocessing.cpu_count() - 1 or 1
with multiprocessing.Pool(core_count) as pool: with multiprocessing.Pool(core_count) as pool:
cycle_count = 0 cycle_count = 0