Skip to content

Commit

Permalink
Merge pull request #38 from dirac-institute/issue/36/kbmod-stderr-std…
Browse files Browse the repository at this point in the history
…out-logging
  • Loading branch information
drewoldag authored Aug 28, 2024
2 parents c4cb676 + 292f219 commit 1a834a5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/kbmod_wf/task_impls/ic_to_wu.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def __init__(
self.wu_filepath = wu_filepath
self.runtime_config = runtime_config
self.logger = logger
kbmod._logging.basicConfig(level=self.logger.level)

self.overwrite = self.runtime_config.get("overwrite", False)
self.search_config_filepath = self.runtime_config.get("search_config_filepath", None)
Expand Down
1 change: 1 addition & 0 deletions src/kbmod_wf/task_impls/kbmod_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def __init__(
self.runtime_config = runtime_config
self.result_filepath = result_filepath
self.logger = logger
kbmod._logging.basicConfig(level=self.logger.level)

self.search_config_filepath = self.runtime_config.get("search_config_filepath", None)
self.results_directory = os.path.dirname(self.result_filepath)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import kbmod
from kbmod.work_unit import WorkUnit
from kbmod.reprojection_utils import transform_wcses_to_ebd

Expand Down Expand Up @@ -67,6 +68,7 @@ def __init__(
self.reprojected_wu_filepath = reprojected_wu_filepath
self.runtime_config = runtime_config
self.logger = logger
kbmod._logging.basicConfig(level=self.logger.level)

self.overwrite = self.runtime_config.get("overwrite", False)
self.search_config = self.runtime_config.get("search_config", None)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import kbmod
from kbmod.work_unit import WorkUnit

import kbmod.reprojection as reprojection
Expand Down Expand Up @@ -56,6 +57,7 @@ def __init__(
self.reprojected_wu_filepath = reprojected_wu_filepath
self.runtime_config = runtime_config
self.logger = logger
kbmod._logging.basicConfig(level=self.logger.level)

# Default to 8 workers if not in the config. Value must be 0<num workers<65.
self.n_workers = max(1, min(self.runtime_config.get("n_workers", 8), 64))
Expand Down

0 comments on commit 1a834a5

Please sign in to comment.