Skip to content

Commit

Permalink
Merge pull request #47 from nsidc/no-print
Browse files Browse the repository at this point in the history
Replace print calls with logging
  • Loading branch information
mfisher87 authored Jul 23, 2024
2 parents 47d87ca + 32264c7 commit 4df6c02
Show file tree
Hide file tree
Showing 25 changed files with 318 additions and 384 deletions.
9 changes: 9 additions & 0 deletions antarctica_today/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import sys

# IMPORTANT: If we don't specify this setting, then the projection we want to use will
# be replaced with another (and this warning will be printed)!
Expand All @@ -10,3 +11,11 @@
# used instead. To use the original CRS, set the OSR_USE_NON_DEPRECATED configuration
# option to NO.
os.environ["OSR_USE_NON_DEPRECATED"] = "NO"


# Ignore warnings by default, while still allowing users to change the behavior, e.g. by
# upgrading them to exceptions.
if not sys.warnoptions:
import warnings

warnings.simplefilter("ignore")
Loading

0 comments on commit 4df6c02

Please sign in to comment.