Skip to content

Commit

Permalink
removing debugging leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
bnb32 committed Jul 24, 2024
1 parent 94aa1b1 commit d4e4535
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions rex/utilities/bc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
import numpy as np
import scipy

from . import init_logger

init_logger(__name__, log_level='DEBUG')
logger = logging.getLogger('sup3r')
logger = logging.getLogger(__name__)


def sample_q_linear(n_samples):
Expand Down Expand Up @@ -285,13 +282,13 @@ def __call__(self, arr):
# Changes in Quantiles and Extremes? Journal of Climate 28, 6938–6959
# (2015).

logger.info('Computing CDF on modeled future data')
logger.debug('Computing CDF on modeled future data')
q_mf = self.cdf(arr, params_mf) # Eq.3: Tau_m_p = F_m_p(x_m_p)
logger.info('Computing PPF on observed historical data')
logger.debug('Computing PPF on observed historical data')
x_oh = self.ppf(q_mf, params_oh) # Eq.5: x^_o:m_h:p = F-1_o_h(Tau_m_p)
logger.info('Computing PPF on modeled historical data')
logger.debug('Computing PPF on modeled historical data')
x_mh_mf = self.ppf(q_mf, params_mh) # Eq.4 denom: F-1_m_h(Tau_m_p)
logger.info('Finished computing distributions.')
logger.debug('Finished computing distributions.')

if self.relative:
x_mh_mf[x_mh_mf == 0] = 0.001 # arbitrary limit to prevent div 0
Expand Down

0 comments on commit d4e4535

Please sign in to comment.