Skip to content

Commit 10faf4a

Browse files
authored
Merge pull request #14 from ClimateImpactLab/shhhh
Quiet unused(?), common, logging messages to terminal
2 parents 8a870c3 + 433ec37 commit 10faf4a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8-
-
8+
### Changed
9+
- Quiet unused(?), common, logging messages to terminal. ([PR #14](https://github.com/ClimateImpactLab/dscim/pull/14), [@brews](https://github.com/brews))
910

1011
## [0.1.0] - 2022-08-30
1112
- Initial release.

src/dscim/menu/main_recipe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ def global_consumption(self):
823823
# rff simulation means that GDP already exists out to 2300
824824
if 2300 in self.gdp.year:
825825

826-
self.logger.info("Global consumption found up to 2300.")
826+
self.logger.debug("Global consumption found up to 2300.")
827827
global_cons = self.gdp.sum("region").rename("global_consumption")
828828
else:
829829

src/dscim/menu/simple_storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def cut(self, xr_array, end_year=2099):
352352
if key in xr_array.coords
353353
}
354354

355-
self.logger.info(f"Subsetting on {valid_keys} keys.")
355+
self.logger.debug(f"Subsetting on {valid_keys} keys.")
356356

357357
xr_data = xr_array.sel(valid_keys).sel(
358358
year=slice(self.climate.pulse_year - 2, end_year)

0 commit comments

Comments
 (0)