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

Reorganizing QDM related methods #216

merged 8 commits into from
May 24, 2024

Conversation

castelao
Copy link
Collaborator

The bias_calc was already getting too large, so let's split and reorganize it.

This PR is meant to simplify the review of the following PresRat. Here, it is mostly about moving things around. Any error would be due to paths accessing components of the library, but the actual existing methods are not changed. The PresRat will be implemented in bias_calc.qdm, on the side of the standard QDM.

The bias_calc was getting too large so let's break it in parts to make
is easier to maintain and navigate. Creating a new sub-module mixins.
The bias_calc was already quite large before adding PresRat. This commit
relocates QuantileDeltaMappingCorrection in a new sub-module that will
also receive PresRat.
Defining what to expose with wildcard.
Since UTF-8 has been the default in a while, it is not recommended
anymore using: '# -*- coding: utf-8 -*-'
@castelao castelao self-assigned this May 20, 2024
To keep the following PR cleaner, this commit moves and combines a few
ruff setup from that PR into here.

style: Adding 'F' into ruff's checks

  It seems to be the only one conforming.

cfg: Missing to ignore F401

  Following @bnb32 setup.

style: Ignore F401 only on __init__

  Thanks to @ppinchuk 's tip! I missed that before.

Ignoring unused import in docs

Including Warning (W) rules
Using it as a bias' resource, and doesn't need to know how it is
organized internally.
Following the pattern, `local_qdm_bc` should be available as a bias
resource as well. I missed that when I was implementing it.
@castelao castelao marked this pull request as ready for review May 22, 2024 21:06
@castelao
Copy link
Collaborator Author

@grantbuster and @bnb32 , may I merge this one?

@castelao castelao merged commit 54b7176 into main May 24, 2024
9 checks passed
@castelao castelao deleted the qdm_reorganizing branch May 24, 2024 16:43
github-actions bot pushed a commit that referenced this pull request May 24, 2024
Reorganizing QDM related methods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants