Skip to content

Commit

Permalink
adding logger statements
Browse files Browse the repository at this point in the history
  • Loading branch information
mjgleason committed Jan 23, 2025
1 parent 524f9b1 commit e39fe19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions reV/supply_curve/tech_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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]
Expand Down

0 comments on commit e39fe19

Please sign in to comment.