Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganizing QDM related methods #216

Merged
merged 8 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading