From e39fe1955344beafc4da5056c83307137187cf46 Mon Sep 17 00:00:00 2001 From: Michael Gleason Date: Wed, 22 Jan 2025 17:39:41 -0700 Subject: [PATCH] adding logger statements --- reV/supply_curve/tech_mapping.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reV/supply_curve/tech_mapping.py b/reV/supply_curve/tech_mapping.py index 4de5e417f..7a686d200 100644 --- a/reV/supply_curve/tech_mapping.py +++ b/reV/supply_curve/tech_mapping.py @@ -367,6 +367,7 @@ def map_resource(self, tm_dset, max_workers=None, points_per_worker=10): futures = {} loggers = [__name__, "reV"] + logger.info(f"Kicking off {gid_chunks} resource mapping jobs.") with SpawnProcessPool(max_workers=max_workers, loggers=loggers) as exe: # iterate through split executions, submitting each to worker for i, gid_set in enumerate(gid_chunks): @@ -388,6 +389,7 @@ def map_resource(self, tm_dset, max_workers=None, points_per_worker=10): self.distance_threshold, ) ] = i + logger.info("All jobs submitted.") with h5py.File(self._excl_fpath, "a") as f: indices = f[tm_dset]