Skip to content

Commit

Permalink
Merge pull request #216 from NREL/qdm_reorganizing
Browse files Browse the repository at this point in the history
Reorganizing QDM related methods
  • Loading branch information
castelao committed May 24, 2024
2 parents 96a6f6a + c69951c commit 54b7176
Show file tree
Hide file tree
Showing 6 changed files with 620 additions and 568 deletions.
11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ fixable = ["ALL"]
preview = true
select = [
"E", # pycodestyle
"F", # Pyflakes
"W", # Warning
]

ignore = [
"B008", # function-call-in-default-argument
"B024", # abstract-base-class-without-abstract-method
Expand All @@ -100,6 +103,14 @@ ignore = [
"UP038" # non-pep604-isinstance
]

[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401", # unused-import
]
"docs/source/conf.py" = [
"E402", # unused-import
]

[tool.ruff.format]
quote-style = "single"
indent-style = "space"
Expand Down
17 changes: 14 additions & 3 deletions sup3r/bias/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
# -*- coding: utf-8 -*-
"""Bias calculation and correction modules."""

from .bias_transforms import (global_linear_bc, local_linear_bc,
monthly_local_linear_bc)
local_qdm_bc, monthly_local_linear_bc)
from .bias_calc import (LinearCorrection, MonthlyLinearCorrection,
QuantileDeltaMappingCorrection,
SkillAssessment)
from .qdm import QuantileDeltaMappingCorrection

__all__ = [
"global_linear_bc",
"local_linear_bc",
"local_qdm_bc",
"monthly_local_linear_bc",
"LinearCorrection",
"MonthlyLinearCorrection",
"QuantileDeltaMappingCorrection",
"SkillAssessment",
]
Loading

0 comments on commit 54b7176

Please sign in to comment.